This commit is contained in:
zino
2023-11-27 15:31:21 +01:00
parent 8c2c19aec4
commit 3e06b01817

View File

@@ -15,6 +15,9 @@ server {
} }
location / { location / {
resolver 127.0.0.11;
set $upstream "4netplayers-wordpress:80";
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
add_header Content-Security-Policy "font-src * data: blob: 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';" always; add_header Content-Security-Policy "font-src * data: blob: 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';" always;
@@ -22,7 +25,7 @@ server {
proxy_set_header X-Forwarded-Host $host:$server_port; proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://4netplayers-wordpress:80; proxy_pass http://$upstream;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }