diff --git a/roles/nginxplus/files/conf/http/checkmk_prod.conf b/roles/nginxplus/files/conf/http/checkmk_prod.conf index 93d1217111..940bb942cc 100644 --- a/roles/nginxplus/files/conf/http/checkmk_prod.conf +++ b/roles/nginxplus/files/conf/http/checkmk_prod.conf @@ -32,7 +32,7 @@ server { listen 443 ssl; http2 on; server_name checkmk-prod.princeton.edu; - + client_max_body_size 8m; ssl_certificate /etc/letsencrypt/live/checkmk-prod/fullchain.pem; @@ -40,8 +40,14 @@ server { ssl_session_cache shared:SSL:1m; ssl_prefer_server_ciphers on; + # Redirect top level traffic to /pulmonitor/ + # until the top level has content. location / { - proxy_pass http://checkmk-prod; + return 302 https://$server_name/pulmonitor/; + } + + location /pulmonitor/ { + proxy_pass http://checkmk-prod/pulmonitor/; # handle errors using errors.conf proxy_set_header Host $host; limit_req zone=checkmk-prod-ratelimit burst=20 nodelay;