stack/custom/nginx/conf.d/wordpress.conf

24 lines
609 B
Text
Raw Normal View History

2024-01-26 19:16:39 +01:00
server {
listen 80;
server_name cddn-webwinkel.nl;
2024-01-26 19:16:39 +01:00
# SSL is managed by certbot, no need for a ssl listen; it will be generated automagically!
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Is-Reverse-Proxy "true";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
client_max_body_size 0;
location / {
proxy_redirect off;
proxy_pass http://cddn-site;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}