Replaced all instances of add_header with more_set_headers

This commit is contained in:
2023-11-10 21:50:13 +01:00
parent dfe30fd752
commit a4e5c20193
29 changed files with 57 additions and 57 deletions

View File

@@ -5,7 +5,7 @@ server {
server_name castdeck.schleppe.cloud;
add_header Upgrading Connection;
more_set_headers Upgrading Connection;
return 302 https://$host$request_uri;
}
@@ -24,9 +24,9 @@ server {
resolver 10.0.0.72;
proxy_pass http://castdeck.schleppe:80;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Content-Type';
more_set_headers 'Access-Control-Allow-Origin' '*';
more_set_headers 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
more_set_headers 'Access-Control-Allow-Headers' 'Content-Type';
proxy_set_header Host $host;
}