jean-cloud-services/services/wordpress6/nginx_server.conf

18 lines
547 B
Plaintext
Raw Normal View History

2024-01-02 16:50:14 +00:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate $JC_CERT/fullchain.pem;
ssl_certificate_key $JC_CERT/privkey.pem;
server_name $JC_SERVICE www.$JC_SERVICE;
location / {
auth_basic "Cette page est protégée par un mot de passe";
auth_basic_user_file $DATA_DIR/pass.txt;
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://$NET.100;
proxy_redirect off;
}
}