This commit is contained in:
zino
2023-12-09 20:34:06 +01:00
parent 106a7e5f5b
commit 9ae4a84978

View File

@@ -8,7 +8,9 @@ server {
error_log /var/log/nginx/error.log error;
root /usr/share/nginx/html/zinomedia.de;
index index.php;
try_files $uri $uri/ =404;
ssl_certificate /etc/letsencrypt/live/zinomedia.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/zinomedia.de/privkey.pem;
@@ -25,13 +27,15 @@ server {
resolver 127.0.0.11;
set $upstream "zinomedia-wordpress:80";
try_files $uri $uri/ /index.php?$args;
#try_files $uri $uri/ /index.php?$args;
#proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://$upstream;
}
@@ -46,7 +50,6 @@ server {
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_path_info;
# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
# fastcgi_pass zinomedia-wordpress:9000;
# fastcgi_index index.php;
# }