diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-24 06:43:08 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-24 06:43:08 -0400 |
commit | e2fc0433de38c322ce46ad250bc0f0f03e7710c8 (patch) | |
tree | f04f079ed745f0c0350af93adf6491bbfec1cd13 /files/usr/local/etc/nginx | |
parent | 393adb9a95913e1658afe3243e4a0498dced9090 (diff) | |
download | infrastructure-e2fc0433de38c322ce46ad250bc0f0f03e7710c8.tar.gz |
add icinga
Diffstat (limited to 'files/usr/local/etc/nginx')
-rw-r--r-- | files/usr/local/etc/nginx/vhosts.conf.icinga_server | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/files/usr/local/etc/nginx/vhosts.conf.icinga_server b/files/usr/local/etc/nginx/vhosts.conf.icinga_server new file mode 100644 index 0000000..43fa82e --- /dev/null +++ b/files/usr/local/etc/nginx/vhosts.conf.icinga_server @@ -0,0 +1,33 @@ +server { + listen 443 ssl default_server; + listen [::]:443 ssl default_server; + http2 on; + + root ${icingaweb_webroot}; + index index.php index.html; + + ssl_certificate ${icingaweb_https_cert}; + ssl_certificate_key ${icingaweb_https_key}; + + add_header Strict-Transport-Security "max-age=63072000" always; + + auth_gss_keytab ${nginx_keytab}; + auth_gss_allow_basic_fallback off; + auth_gss on; + satisfy any; +$(printf ' deny %s;\n' $kerberized_cidrs) + allow all; + + location ~ ^/index\.php(.*)$ { + fastcgi_pass unix:${icingaweb_fpm_socket}; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME ${icingaweb_webroot}/index.php; + fastcgi_param ICINGAWEB_CONFIGDIR ${icingaweb_conf_dir}; + } + + location ~ ^/(.+)? { + index index.php; + try_files \$1 \$uri \$uri/ /index.php\$is_args\$args; + } +} |