From a8615c7597d39a0578a8fb5f44231046ffdbb8df Mon Sep 17 00:00:00 2001 From: Stasiek Michalski Date: May 09 2020 15:11:15 +0000 Subject: Allow access to .well-known on www --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index f51f64b..940f26e 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -48,6 +48,10 @@ nginx: - location ~ ^/themes/: - autoindex: 'on' {% endif %} + {% if website == 'www' %} + - location ~ "^/\.well-known/": + - add_header: Access-Control-Allow-Origin "*" + {% endif %} - error_page: 405 = $uri - error_page: 405 =200 $uri - error_page: 500 502 503 504 /50x.html