jean-cloud-services/services/wordpress.feministesucl34.jean-cloud.net/nginx_server.conf
2023-10-31 17:00:18 +01:00

33 lines
944 B
Plaintext
Executable File

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate $JC_CERTS/fullchain.pem;
ssl_certificate_key $JC_CERTS/privkey.pem;
server_name wordpress.feministesucl34.jean-cloud.net www.wordpress.feministesucl34.jean-cloud.net;
location / {
client_max_body_size 2G;
#proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://172.29.9.100;
proxy_redirect off;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate $JC_CERTS/fullchain.pem;
ssl_certificate_key $JC_CERTS/privkey.pem;
server_name feministesucl34.jean-cloud.net www.feministesucl34.jean-cloud.net;
location = /wp-login.php {
return 301 https://wordpress.feministesucl34.jean-cloud.net/wp-login.php;
}
location / {
root /data/feministesucl34.jean-cloud.net/static;
try_files $uri $uri/ =404;
}
}