X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/19ae770973482257117fe8ded5619c3018c4b60f..688319dca9cbbb27452a0062943bb38b6935254e:/sdk/python/tests/nginx.conf diff --git a/sdk/python/tests/nginx.conf b/sdk/python/tests/nginx.conf index 2b8b6ca1c4..ce1929fdf7 100644 --- a/sdk/python/tests/nginx.conf +++ b/sdk/python/tests/nginx.conf @@ -1,17 +1,22 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + daemon off; -error_log stderr info; # Yes, must be specified here _and_ cmdline +error_log "{{ERRORLOG}}" info; # Yes, must be specified here _and_ cmdline events { } http { - access_log {{ACCESSLOG}} combined; + access_log "{{ACCESSLOG}}" combined; + client_body_temp_path "{{TMPDIR}}"; upstream arv-git-http { server localhost:{{GITPORT}}; } server { listen *:{{GITSSLPORT}} ssl default_server; server_name _; - ssl_certificate {{SSLCERT}}; - ssl_certificate_key {{SSLKEY}}; + ssl_certificate "{{SSLCERT}}"; + ssl_certificate_key "{{SSLKEY}}"; location / { proxy_pass http://arv-git-http; } @@ -22,8 +27,8 @@ http { server { listen *:{{KEEPPROXYSSLPORT}} ssl default_server; server_name _; - ssl_certificate {{SSLCERT}}; - ssl_certificate_key {{SSLKEY}}; + ssl_certificate "{{SSLCERT}}"; + ssl_certificate_key "{{SSLKEY}}"; location / { proxy_pass http://keepproxy; } @@ -34,8 +39,8 @@ http { server { listen *:{{KEEPWEBSSLPORT}} ssl default_server; server_name ~^(?.*)$; - ssl_certificate {{SSLCERT}}; - ssl_certificate_key {{SSLKEY}}; + ssl_certificate "{{SSLCERT}}"; + ssl_certificate_key "{{SSLKEY}}"; location / { proxy_pass http://keep-web; proxy_set_header Host $request_host:{{KEEPWEBPORT}}; @@ -45,8 +50,8 @@ http { server { listen *:{{KEEPWEBDLSSLPORT}} ssl default_server; server_name ~.*; - ssl_certificate {{SSLCERT}}; - ssl_certificate_key {{SSLKEY}}; + ssl_certificate "{{SSLCERT}}"; + ssl_certificate_key "{{SSLKEY}}"; location / { proxy_pass http://keep-web; proxy_set_header Host download:{{KEEPWEBPORT}}; @@ -54,4 +59,33 @@ http { proxy_redirect //download:{{KEEPWEBPORT}}/ https://$host:{{KEEPWEBDLSSLPORT}}/; } } + upstream ws { + server localhost:{{WSPORT}}; + } + server { + listen *:{{WSSPORT}} ssl default_server; + server_name ~^(?.*)$; + ssl_certificate "{{SSLCERT}}"; + ssl_certificate_key "{{SSLKEY}}"; + location / { + proxy_pass http://ws; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $request_host:{{WSPORT}}; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + } + upstream controller { + server localhost:{{CONTROLLERPORT}}; + } + server { + listen *:{{CONTROLLERSSLPORT}} ssl default_server; + server_name _; + ssl_certificate "{{SSLCERT}}"; + ssl_certificate_key "{{SSLKEY}}"; + location / { + proxy_pass http://controller; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + } }