jean-cloud-services/services/wiki-cgr.jean-cloud.net/nginx_server.conf

33 lines
916 B
Plaintext
Raw Permalink 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_pass http://$NET.100;
proxy_redirect off;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate $JC_CERT/fullchain.pem;
ssl_certificate_key $JC_CERT/privkey.pem;
server_name parsoid-wiki-cgr.jean-cloud.net www.parsoid-wiki-cgr.jean-cloud.net;
location / {
client_max_body_size 2G;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://$NET.101:8000;
proxy_redirect off;
}
}