]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
PIXELPARK - tower websocket
authorOliver Böttcher <oliver.boettcher@pixelpark.com>
Mon, 11 Sep 2017 11:03:49 +0000 (13:03 +0200)
committerOliver Böttcher <oliver.boettcher@pixelpark.com>
Mon, 11 Sep 2017 11:03:49 +0000 (13:03 +0200)
customer/pixelpark/deploy.pixelpark.com.yaml

index 0fd6e18acbea5a6330417ccde7b83477d80be12f..629fa2cf52e1c21dd850da36f8cb328562a350f4 100644 (file)
@@ -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/' }