2026-07-03 16:57:04 -04:00
|
|
|
# Géré par Set-OPS (rôle serveur_icingaweb2). Ne pas éditer à la main.
|
|
|
|
|
# nginx LOCAL : sert Icinga Web 2 (PHP-FPM). L'edge nginx proxifie par nom vers ce port.
|
|
|
|
|
server {
|
2026-07-03 19:05:04 -04:00
|
|
|
listen {{ serveur_icingaweb2_nginx_bind }}{{ serveur_icingaweb2_http_port }};
|
|
|
|
|
{% if not serveur_icingaweb2_nginx_bind %}
|
2026-07-03 16:57:04 -04:00
|
|
|
listen [::]:{{ serveur_icingaweb2_http_port }};
|
2026-07-03 19:05:04 -04:00
|
|
|
{% endif %}
|
2026-07-03 16:57:04 -04:00
|
|
|
server_name {{ serveur_icingaweb2_hostname }};
|
|
|
|
|
|
|
|
|
|
root {{ serveur_icingaweb2_docroot }};
|
|
|
|
|
index index.php;
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ~ ^/index\.php {
|
|
|
|
|
fastcgi_pass unix:{{ serveur_icingaweb2_php_fpm_socket }};
|
|
|
|
|
fastcgi_index index.php;
|
|
|
|
|
include fastcgi_params;
|
|
|
|
|
fastcgi_param SCRIPT_FILENAME {{ serveur_icingaweb2_docroot }}/index.php;
|
|
|
|
|
fastcgi_param ICINGAWEB_CONFIGDIR {{ serveur_icingaweb2_config_dir }};
|
2026-07-03 19:05:04 -04:00
|
|
|
fastcgi_param REMOTE_USER {{ serveur_icingaweb2_remote_user }};
|
2026-07-03 16:57:04 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location ~ /\.ht {
|
|
|
|
|
deny all;
|
|
|
|
|
}
|
|
|
|
|
}
|