jean-cloud-services/services/builder.rimarima.fr/nginx_server.conf

28 lines
675 B
Plaintext
Raw Normal View History

2023-12-18 16:16:09 +00:00
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name $JC_SERVICE;
ssl_certificate $JC_CERT/fullchain.pem;
ssl_certificate_key $JC_CERT/privkey.pem;
auth_basic "Entrez votre identifiant et mot de passe";
auth_basic_user_file "$SECRET_DIR/user.htpasswd";
location /buildscript/ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $DOCKER_DIR/server.sh;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
location / {
index index.html;
root $HTTP_DIR/public;
try_files $uri $uri/ =404;
}
location /builderui {
root $DOCKER_DIR;
try_files /index.html =404;
}
}