2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-13 00:36:26 +00:00

Merge pull request #272 from muniter/nginx_template

fix: use remote_addr instead of header ip
This commit is contained in:
Revant Nandgaonkar 2020-06-18 04:54:05 +05:30 committed by GitHub
commit 3ce4fff974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ server {
} }
location @webserver { location @webserver {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frappe-Site-Name $host; proxy_set_header X-Frappe-Site-Name $host;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;