Skip to content

Commit

Permalink
use proxy_pass instead of redirect (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
3mcd authored May 22, 2024
1 parent dcaaf5d commit d669b9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
26 changes: 12 additions & 14 deletions integrations/evaluations-proxy/nginx.conf
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;
}
}
26 changes: 12 additions & 14 deletions integrations/submissions-proxy/nginx.conf
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;
}
}

0 comments on commit d669b9c

Please sign in to comment.