X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8257b9e9049a2592c9858941775a11b5a98ec1f7..093ec98e4a065acfc537ea22c08c337c115fe273:/sdk/python/tests/nginx.conf diff --git a/sdk/python/tests/nginx.conf b/sdk/python/tests/nginx.conf index 25a6f2096d..543390004b 100644 --- a/sdk/python/tests/nginx.conf +++ b/sdk/python/tests/nginx.conf @@ -30,6 +30,10 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_redirect off; + proxy_max_temp_file_size 0; + proxy_request_buffering off; + proxy_buffering off; + proxy_http_version 1.1; } } upstream arv-git-http { @@ -63,6 +67,7 @@ http { proxy_set_header X-Forwarded-Proto https; proxy_redirect off; + client_max_body_size 67108864; proxy_http_version 1.1; proxy_request_buffering off; } @@ -157,18 +162,20 @@ http { proxy_redirect off; } } + upstream workbench2 { + server {{LISTENHOST}}:{{WORKBENCH2PORT}}; + } server { listen {{LISTENHOST}}:{{WORKBENCH2SSLPORT}} ssl; server_name workbench2 workbench2.*; ssl_certificate "{{SSLCERT}}"; ssl_certificate_key "{{SSLKEY}}"; - location /config.json { - return 200 '{ "API_HOST": "{{ARVADOS_API_HOST}}" }'; - } location / { - root /var/lib/arvados/workbench2; - index index.html; - try_files $uri $uri/ /index.html; + proxy_pass http://workbench2; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + proxy_redirect off; } } }