Skip to content

Commit

Permalink
updates prod config to match
Browse files Browse the repository at this point in the history
  • Loading branch information
acozine committed May 23, 2024
1 parent 1883dfd commit 5e0da5f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions roles/nginxplus/files/conf/http/checkmk_prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,22 @@ 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;
ssl_certificate_key /etc/letsencrypt/live/checkmk-prod/privkey.pem;
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;
Expand Down

0 comments on commit 5e0da5f

Please sign in to comment.