]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
chat - location fix
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 1 Dec 2016 12:10:20 +0000 (13:10 +0100)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Thu, 1 Dec 2016 12:10:20 +0000 (13:10 +0100)
customer/pixelpark/chat01.pixelpark.com.yaml

index 6c84e485aee73c6a277f48768e92ffbd3b415d1e..0820ff557c9c8c6e74700f01cf7ae389530ad244 100644 (file)
@@ -54,13 +54,12 @@ nginx::nginx_vhosts:
       - 'X-Frame-Options SAMEORIGIN'
       - 'X-Forwarded-Ssl on'
     client_max_body_size: '50m'
-    locations:
-      '/api/info':
-        location_allow:
-          - '127.0.0.0/8'
-          - '217.66.51.0/24'
-        location_deny:
-          - 'all'
+    location_raw_append: |
+      location '/api/info' {
+        allow 127.0.0.0/8
+        allow 217.66.51.0/24
+        deny all
+      }
 
 nginx::nginx_upstreams:
   rocket_chat: