diff --git a/containers/nginx/dev-ssr.conf.tpl b/containers/nginx/dev-ssr.conf.tpl index 3fd1638fc..1963047d5 100644 --- a/containers/nginx/dev-ssr.conf.tpl +++ b/containers/nginx/dev-ssr.conf.tpl @@ -33,7 +33,7 @@ server { # Cache GET requests by default if ($request_method = GET){ - set $no_cache 0; + set $no_cache 1; } # Do not cache if we have a cookie set @@ -88,7 +88,6 @@ server { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; - proxy_redirect off; proxy_set_header X-Forwarded-Proto $scheme; } @@ -106,7 +105,7 @@ server { log_not_found off; } - location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe) { + location ~ ^(/api|/fs|/icon|/carousel|/emails/unsubscribe|/.well-known) { add_header 'Access-Control-Allow-Origin' "$http_origin"; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS'; @@ -115,6 +114,11 @@ server { rewrite ^(.+)$ /index.php last; } + # Not in block above as did.json is not in the root of the path + location ~ (did.json) { + rewrite ^(.+)$ /index.php last; + } + location ~* \.(woff|woff2|ttf|eot) { add_header 'Access-Control-Allow-Origin' *; }