2026-10-08 02:01:58 +02:00
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
listen [::]:80;
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
|
|
root {{ portail_dossier_app }}/public;
|
|
|
|
|
index index.php;
|
|
|
|
|
|
|
|
|
|
client_max_body_size 20m;
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-08 09:35:16 +02:00
|
|
|
# Relaie la console série (étape 9) en WebSocket vers le proxy Go. Le
|
|
|
|
|
# jeton après /console/ est à usage court (5 min), jamais l'URL Nova.
|
|
|
|
|
location /console/ {
|
|
|
|
|
proxy_pass http://127.0.0.1:8081/console/;
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
proxy_read_timeout 1h;
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-08 02:01:58 +02:00
|
|
|
location ~ \.php$ {
|
|
|
|
|
fastcgi_pass unix:/run/php/php{{ portail_php_version }}-fpm.sock;
|
|
|
|
|
fastcgi_index index.php;
|
|
|
|
|
include fastcgi_params;
|
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ~ /\.(?!well-known) {
|
|
|
|
|
deny all;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
access_log /var/log/nginx/portail-access.log;
|
|
|
|
|
error_log /var/log/nginx/portail-error.log;
|
|
|
|
|
}
|