From: Oliver Böttcher Date: Mon, 11 Sep 2017 11:03:49 +0000 (+0200) Subject: PIXELPARK - tower websocket X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=32a0a2bb154d9c9472753f78bb8ae3454cc2cbd7;p=pixelpark%2Fhiera.git PIXELPARK - tower websocket --- diff --git a/customer/pixelpark/deploy.pixelpark.com.yaml b/customer/pixelpark/deploy.pixelpark.com.yaml index 0fd6e18a..629fa2cf 100644 --- a/customer/pixelpark/deploy.pixelpark.com.yaml +++ b/customer/pixelpark/deploy.pixelpark.com.yaml @@ -6,6 +6,7 @@ infra::additional_classes: - infra::profile::apache - apache::mod::proxy_http - apache::mod::headers + - apache::mod::proxy_wstunnel python::dev: true @@ -59,5 +60,11 @@ infra::profile::apache::pp_vhosts: comment: 'all to https' rewrite_rule: - '^(.*)$ https://deploy.pixelpark.com$1 [L,R=301]' + rewrites_ssl: + - comment: websocket + rewrite_cond: + - '%%{ich-trickse}{HTTP:Upgrade} =websocket [NC]' + rewrite_rule: + - '/(.*) ws://localhost:9090/$1 [P,L]' proxy_pass: - { path: /, url: 'http://localhost:9090/' }