From 6721942e743c24184021826d265d8f2249768556 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Apr 20 2020 10:22:30 +0000 Subject: Merge branch 'hellcp/static-fix-syntax' into 'production' Make the location tag use proper syntax See merge request infra/salt!390 --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index 35c6462..dc643d2 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -43,7 +43,7 @@ nginx: - location ~* \.(?:ttf|otf|eot|woff)$: - add_header: Access-Control-Allow-Origin "*" {% if website == 'static' %} - - location ^/chat/: + - location ~ ^/chat/: - add_header: Access-Control-Allow-Origin "*" - location ~ ^/themes/: - autoindex: 'on'