X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cd9e72bd95b32203231f6ccc96ddce9325b30a95..032ecb480134f6138346865fba7732a836b809c6:/sdk/python/tests/nginx.conf diff --git a/sdk/python/tests/nginx.conf b/sdk/python/tests/nginx.conf index 4ad3eda420..1716291fe8 100644 --- a/sdk/python/tests/nginx.conf +++ b/sdk/python/tests/nginx.conf @@ -15,6 +15,13 @@ http { fastcgi_temp_path "{{TMPDIR}}"; uwsgi_temp_path "{{TMPDIR}}"; scgi_temp_path "{{TMPDIR}}"; + geo $external_client { + default 1; + 127.0.0.0/8 0; + ::1 0; + fd00::/8 0; + {{INTERNALSUBNETS}} + } upstream controller { server {{UPSTREAMHOST}}:{{CONTROLLERPORT}}; } @@ -26,7 +33,10 @@ http { client_max_body_size 0; location / { proxy_pass http://controller; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; + proxy_set_header X-External-Client $external_client; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_redirect off;