Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making sure the load balancer is forwarding protocol #5545

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/datacommons.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ server {
proxy_pass http://discovery/discovery/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_cache discovery-prodcache;
health_check uri=/discovery/health.json interval=10 fails=3 passes=2;
# handle errors using errors.conf
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/datacommons_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ server {
proxy_pass http://staging-discovery/discovery/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_cache discovery-stagingcache;
# handle errors using errors.conf
proxy_intercept_errors on;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/orcid_prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ server {
proxy_pass http://orcid-prod;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_cache pdc-orcid-prodcache;
# handle errors using errors.conf
proxy_intercept_errors on;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/pdc-discovery_prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ server {
proxy_pass http://pdc-discovery-prod/discovery/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_cache pdc-discovery-prodcache;
health_check uri=/discovery/health.json interval=10 fails=3 passes=2;
# health_check interval=10 fails=3 passes=2;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/pdc-discovery_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ server {
proxy_pass http://pdc-discovery-staging/discovery/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_cache pdc-discovery-stagingcache;
# handle errors using errors.conf
proxy_intercept_errors on;
Expand Down
Loading