X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/71be4f147153573074a3eff4bfa1be559bc091b5..91ebfb6d3812313dfa13caa75a6e5fb426c0d519:/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_keepweb_configuration.sls diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_keepweb_configuration.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_keepweb_configuration.sls index fca4216076..ae2fe6a32c 100644 --- a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_keepweb_configuration.sls +++ b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_keepweb_configuration.sls @@ -3,6 +3,7 @@ # # SPDX-License-Identifier: AGPL-3.0 +# Keepweb upstream is common to both downloads and collections ### NGINX nginx: ### SERVER @@ -11,79 +12,4 @@ nginx: ### STREAMS http: upstream collections_downloads_upstream: - - server: 'localhost:9002 fail_timeout=10s' - - servers: - managed: - ### DEFAULT - arvados_collections_download_default: - enabled: true - overwrite: true - config: - - server: - - server_name: '~^((.*--)?collections|download)\.__CLUSTER__\.__DOMAIN__' - - listen: - - 80 - - include: snippets/letsencrypt_well_known.conf - - location /: - - return: '301 https://$host$request_uri' - - ### COLLECTIONS - arvados_collections_ssl: - enabled: true - overwrite: true - requires: - cmd: create-initial-cert-collections.__CLUSTER__.__DOMAIN__-collections.__CLUSTER__.__DOMAIN__ - config: - - server: - - server_name: '~^(.*--)?collections\.__CLUSTER__\.__DOMAIN__' - - listen: - - __CONTROLLER_EXT_SSL_PORT__ http2 ssl - - index: index.html index.htm - - location /: - - proxy_pass: 'http://collections_downloads_upstream' - - proxy_read_timeout: 90 - - proxy_connect_timeout: 90 - - proxy_redirect: 'off' - - proxy_set_header: X-Forwarded-Proto https - - proxy_set_header: 'Host $http_host' - - proxy_set_header: 'X-Real-IP $remote_addr' - - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for' - - proxy_buffering: 'off' - - client_max_body_size: 0 - - proxy_http_version: '1.1' - - proxy_request_buffering: 'off' - - include: snippets/ssl_hardening_default.conf - - include: snippets/collections.__CLUSTER__.__DOMAIN___letsencrypt_cert[.]conf - - access_log: /var/log/nginx/collections.__CLUSTER__.__DOMAIN__.access.log combined - - error_log: /var/log/nginx/collections.__CLUSTER__.__DOMAIN__.error.log - - ### DOWNLOAD - arvados_download_ssl: - enabled: true - overwrite: true - requires: - cmd: create-initial-cert-download.__CLUSTER__.__DOMAIN__-download.__CLUSTER__.__DOMAIN__ - config: - - server: - - server_name: download.__CLUSTER__.__DOMAIN__ - - listen: - - __CONTROLLER_EXT_SSL_PORT__ http2 ssl - - index: index.html index.htm - - location /: - - proxy_pass: 'http://collections_downloads_upstream' - - proxy_read_timeout: 90 - - proxy_connect_timeout: 90 - - proxy_redirect: 'off' - - proxy_set_header: X-Forwarded-Proto https - - proxy_set_header: 'Host $http_host' - - proxy_set_header: 'X-Real-IP $remote_addr' - - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for' - - proxy_buffering: 'off' - - client_max_body_size: 0 - - proxy_http_version: '1.1' - - proxy_request_buffering: 'off' - - include: snippets/ssl_hardening_default.conf - - include: snippets/download.__CLUSTER__.__DOMAIN___letsencrypt_cert[.]conf - - access_log: /var/log/nginx/download.__CLUSTER__.__DOMAIN__.access.log combined - - error_log: /var/log/nginx/download.__CLUSTER__.__DOMAIN__.error.log + - server: '__KEEPWEB_INT_IP__:9002 fail_timeout=10s'