Skip to content

Commit

Permalink
Merge pull request #5434 from pulibrary/pdc-https
Browse files Browse the repository at this point in the history
[NGINX] In PDC Describe, Adding proxy_set_header X-Forwarded-Proto https
  • Loading branch information
hectorcorrea authored Oct 9, 2024
2 parents 80eaea9 + ddfd084 commit a36f73c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
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 @@ -59,6 +59,7 @@ server {
proxy_pass http://staging-describe/describe/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_cache describe-stagingcache;
# handle errors using errors.conf
proxy_intercept_errors on;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/pdc-describe_prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ server {
proxy_pass http://pdc-describe-prod/describe/;
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-describe-prodcache;
# handle errors using errors.conf
proxy_intercept_errors on;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/pdc-describe_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ server {
proxy_pass http://pdc-describe-staging/describe/;
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-describe-stagingcache;
# handle errors using errors.conf
proxy_intercept_errors on;
Expand Down

0 comments on commit a36f73c

Please sign in to comment.