Browse Source

remove X-Forwarded- header

master
OhYee 4 weeks ago
parent
commit
037dfaeaef
Signed by: OhYee
GPG Key ID: 5A9E1F63ED274FBB
  1. 10
      nginx/conf.d/blotter.conf

10
nginx/conf.d/blotter.conf

@ -13,12 +13,6 @@ server { @@ -13,12 +13,6 @@ server {
location ^~ / {
proxy_pass http://frontend:50002;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $server_name;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
@ -26,10 +20,6 @@ server { @@ -26,10 +20,6 @@ server {
location ^~/api/ {
proxy_pass http://backend:50000;
proxy_set_header nginx true;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

Loading…
Cancel
Save