Skip to content

Commit

Permalink
[nginxplus] Add X-Forwarded-Proto headers to all DLS configs
Browse files Browse the repository at this point in the history
advances #5472
  • Loading branch information
hackartisan committed Dec 4, 2024
1 parent 4f313e0 commit 0f34e4c
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/abid_prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ server {
location / {
proxy_pass http://abid;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache abidcache;
proxy_connect_timeout 2h;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/dev/abid_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ server {
# # app_protect_security_log_enable on;
proxy_pass http://abid-staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache abid-stagingcache;
proxy_connect_timeout 2h;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ server {
# app_protect_security_log_enable on;
proxy_pass http://dpul-collections-staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache dpul-collections-stagingcache;
# allow princeton network
# include /etc/nginx/conf.d/templates/restrict.conf;
Expand All @@ -48,6 +49,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-NginX-Proxy true;

# enables websocket support
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/dpul-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ server {
app_protect_enable off;
proxy_pass http://dpul-prod;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache dpul-prodcache;
proxy_intercept_errors on;
health_check uri=/health.json interval=10 fails=3 passes=2;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/dpul-staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ server {
# app_protect_security_log_enable on;
proxy_pass http://dpul-staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache dpul-stagingcache;
health_check uri=/health.json interval=10 fails=3 passes=2;
}
Expand Down
2 changes: 2 additions & 0 deletions roles/nginxplus/files/conf/http/figgy-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ server {
app_protect_enable off;
proxy_pass http://figgy;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache figgycache;
Expand All @@ -59,6 +60,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-NginX-Proxy true;

# enables websocket support
Expand Down
2 changes: 2 additions & 0 deletions roles/nginxplus/files/conf/http/figgy-staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ server {
app_protect_enable off;
proxy_pass http://figgy-staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache figgy-stagingcache;
Expand All @@ -56,6 +57,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-NginX-Proxy true;

# enables websocket support
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/imagecat_prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ server {
location / {
proxy_pass http://imagecat_prod;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache imagecat_prodcache;
proxy_intercept_errors on;
# health_check interval=10 fails=3 passes=2;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/imagecat_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ server {
location / {
proxy_pass http://imagecat_staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache imagecat_stagingcache;
# health_check interval=10 fails=3 passes=2;
# allow princeton network
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/lae-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ server {
location / {
proxy_pass http://lae;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache laeprodcache;
health_check interval=10 fails=3 passes=2;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/lae-staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ server {
# app_protect_security_log_enable on;
proxy_pass http://lae-staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache lae-stagingcache;
health_check interval=10 fails=3 passes=2;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/maps-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ server {
app_protect_enable off;
proxy_pass http://maps-prod;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache maps-prodcache;
proxy_buffer_size 128k;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/maps-staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ server {
# app_protect_security_log_enable on;
proxy_pass http://maps-staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Real-IP $remote_addr;
proxy_cache maps-stagingcache;
proxy_connect_timeout 2h;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/pulfalight-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ server {
location / {
proxy_pass http://pulfalight-prod;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache pulfalight-stagingcache;
proxy_connect_timeout 2h;
proxy_send_timeout 2h;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/pulfalight-qa.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ server {
# app_protect_security_log_enable on;
proxy_pass http://pulfalight-qa;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache pulfalight-qacache;
proxy_connect_timeout 2h;
proxy_send_timeout 2h;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/pulfalight-staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ server {
# app_protect_security_log_enable on;
proxy_pass http://pulfalight-staging;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_cache pulfalight-stagingcache;
proxy_connect_timeout 2h;
proxy_send_timeout 2h;
Expand Down

0 comments on commit 0f34e4c

Please sign in to comment.