28 lines
675 B
Plaintext
28 lines
675 B
Plaintext
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;
|
|
}
|
|
|
|
}
|