-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use proxy_pass instead of redirect (#360)
- Loading branch information
Showing
2 changed files
with
24 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
worker_processes auto; | ||
server { | ||
listen 80; | ||
server_name _; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
location / { | ||
proxy_pass $scheme://app.pubpub.org/intg/evaluations$request_uri; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
server { | ||
listen 80; | ||
server_name integration-evaluations.onrender.com; | ||
return 301 $scheme://app.pubpub.org/intg/evaluations$request_uri; | ||
} | ||
} | ||
proxy_ssl_verify on | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
worker_processes auto; | ||
server { | ||
listen 80; | ||
server_name _; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
location / { | ||
proxy_pass $scheme://app.pubpub.org/intg/submissions$request_uri; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
server { | ||
listen 80; | ||
server_name integration-submissions.onrender.com; | ||
return 301 $scheme://app.pubpub.org/intg/submissions$request_uri; | ||
} | ||
} | ||
proxy_ssl_verify on | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
} | ||
} |