Commit c67e25be authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig) Committed by Jan Alexander Steffens (heftig)
Browse files

archweb: Allow any origin to see our .well-known redirects

Required to get .well-known working with web clients.
parent 1893d35b
Pipeline #1973 passed with stage
in 40 seconds
......@@ -21,6 +21,11 @@ server {
include snippets/letsencrypt.conf;
location /.well-known {
add_header Access-Control-Allow-Origin *;
return 301 https://$server_name$request_uri;
}
location / {
access_log off;
return 301 https://$server_name$request_uri;
......@@ -39,6 +44,11 @@ server {
ssl_certificate_key /etc/letsencrypt/live/{{ archweb_domain }}/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/{{ archweb_domain }}/chain.pem;
location /.well-known {
add_header Access-Control-Allow-Origin *;
return 301 https://{{ archweb_domain }}{{ domain['redirect']|default('$request_uri') }};
}
location / {
access_log off;
return 301 https://{{ archweb_domain }}{{ domain['redirect']|default('$request_uri') }};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment