X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/65d25630f34296f30c50cd78f232713f23f70bc3..736c58d66deda35079ad8b64df02ee0ef57232f0:/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 5a25ae8991..441140e80d 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 @@ -12,77 +13,3 @@ nginx: 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 - - 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