web, graphql: set X-Forwarded-For properly

This commit is contained in:
Drew DeVault 2021-08-30 10:36:23 +02:00
parent f75b6ca38f
commit dcfe4221f8
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ real_ip_header X-Forwarded-For;
real_ip_recursive on;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';

View File

@ -2,3 +2,4 @@ real_ip_header X-Forwarded-For;
real_ip_recursive on;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;