Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Mar 7, 2025
1 parent 7f6bf0d commit a71ef7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nomad/traefik-wall/deploy/sites/pulfalight-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ http:
findingaids-qa:
loadBalancer:
servers:
- url: http://pulfalight-qa1.princeton.edu:80
- url: http://pulfalight-qa-web1.princeton.edu:80
4 changes: 2 additions & 2 deletions roles/nginxplus/files/conf/http/pulfalight-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ upstream pulfalight-prod {
least_time last_byte inflight;
zone pulfalight-prod 64k;
# lowchallenge challenges after 20 requests from xx.xx.<>.<>.<>
server service.consul service=lowchallenge.traefik-wall-staging resolve max_fails=0;
server service.consul service=lowchallenge.traefik-wall-production resolve max_fails=0;
# highchallenge challenges everyone. Comment above and uncomment
# this when you're being swarmed by bots.
# server service.consul service=highchallenge.traefik-wall-staging resolve max_fails=0;
# server service.consul service=highchallenge.traefik-wall-production resolve max_fails=0;
# If Traefik crashes, fall down to the box directly.
server pulfalight-jammy-prod1.princeton.edu resolve max_fails=0 backup;
server pulfalight-jammy-prod2.princeton.edu resolve max_fails=3 backup;
Expand Down
6 changes: 4 additions & 2 deletions roles/nginxplus/files/conf/http/pulfalight-qa.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ proxy_cache_path /var/cache/nginx/pulfalight-qa/ keys_zone=pulfalight-qacache:10
upstream pulfalight-qa {
zone pulfalight-qa 64k;
# lowchallenge challenges after 20 requests from xx.xx.<>.<>.<>
server service.consul service=lowchallenge.traefik-wall-staging resolve max_fails=0;
server service.consul service=lowchallenge.traefik-wall-production resolve max_fails=0;
# highchallenge challenges everyone. Comment above and uncomment
# this when you're being swarmed by bots.
# server service.consul service=highchallenge.traefik-wall-staging resolve max_fails=0;
# server service.consul service=highchallenge.traefik-wall-production resolve max_fails=0;
# If Traefik crashes, fall down to the box directly.
server pulfalight-qa-web1.princeton.edu resolve backup;
sticky learn
Expand Down Expand Up @@ -42,6 +42,8 @@ server {
proxy_pass http://pulfalight-qa;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache pulfalight-qacache;
proxy_connect_timeout 2h;
proxy_send_timeout 2h;
Expand Down

0 comments on commit a71ef7c

Please sign in to comment.