From ec463adf6c827f1a8b4c2858617b69a27bcaac9e Mon Sep 17 00:00:00 2001 From: Keiran Snowden Date: Sun, 12 Mar 2023 22:20:43 -0400 Subject: [PATCH] icinga2/files/icingaweb2.jinja --- icinga2/files/icingaweb2.jinja | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/icinga2/files/icingaweb2.jinja b/icinga2/files/icingaweb2.jinja index a9be2ad..2987ec6 100644 --- a/icinga2/files/icingaweb2.jinja +++ b/icinga2/files/icingaweb2.jinja @@ -2,7 +2,7 @@ server { server_name icinga.keiran.us; -rewrite ^/$ http://icinga.keiran.us/icingaweb2 permanent; +rewrite ^/$ https://icinga.keiran.us/icingaweb2 permanent; location ~ ^/icingaweb2/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; @@ -20,18 +20,6 @@ rewrite ^/$ http://icinga.keiran.us/icingaweb2 permanent; try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args; } - location ~ ^/ccfc/$ { - auth_basic "Login"; - auth_basic_user_file /var/www/htpasswd_ccfc; - fastcgi_pass unix://var/run/php/php7.3-fpm.sock; - fastcgi_index index.php; - include fastcgi_params; - fastcgi_param SCRIPT_FILENAME /var/www/ccfc/index.php; - fastcgi_param REMOTE_USER $remote_user; - } - - - listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/icinga.keiran.us/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/icinga.keiran.us/privkey.pem; # managed by Certbot @@ -51,4 +39,4 @@ server_name icinga.keiran.us; return 404; # managed by Certbot -} \ No newline at end of file +}