Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
c67e25be
Commit
c67e25be
authored
Aug 19, 2020
by
Jan Alexander Steffens (heftig)
Committed by
Jan Alexander Steffens (heftig)
Sep 30, 2020
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/archweb/templates/nginx.d.conf.j2
View file @
c67e25be
...
...
@@ -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') }};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment