- Correction des scripts generate_grafana_dashboards.sh et generate_promtail_config.sh - Les dashboards Grafana sont maintenant générés dans _4NK_modules/grafana/dashboards/ - La configuration Promtail est maintenant générée dans _4NK_modules/promtail/ - Désactivation du traitement du répertoire 4NK_modules dans replace_variables_and_copy.sh - Mise à jour des messages d'affichage dans generate.sh - Cohérence avec la structure existante _4NK_modules/
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# Configuration HTTPS pour IHM_CLIENT
|
|
# Généré automatiquement le Sun Oct 5 22:04:53 UTC 2025
|
|
|
|
server {
|
|
listen 80;
|
|
server_name ihm_client..com;
|
|
# redirection HTTP→HTTPS pour l'externe
|
|
return 301 https://;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name ihm_client..com;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/dev4._4NKweb.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/dev4._4NKweb.com/privkey.pem;
|
|
|
|
|
|
# réglages TLS minimaux (adapter selon politique)
|
|
ssl_session_timeout 1d;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
ssl_prefer_server_ciphers on;
|
|
|
|
# HSTS (activer seulement si tout le domaine est en HTTPS)
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
|
|
|
access_log $/home/debian/_4NK_env/projects/lecoffre/lecoffre_node/logs/nginx/.log app_json;
|
|
|
|
location / {
|
|
proxy_pass http://ihm_client;
|
|
include $/proxy_headers.conf;
|
|
}
|
|
|
|
location /ws/ {
|
|
proxy_pass http://ihm_client;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade ;
|
|
proxy_set_header Connection "upgrade";
|
|
include $/proxy_headers.conf;
|
|
proxy_read_timeout 3600s;
|
|
}
|
|
}
|