X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1a169a434494175b208d0d5055bb42333d9b64b9..b7d5f7b673fd35ef6eb7348a9a96ba100995427f:/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_workbench2_configuration.sls diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_workbench2_configuration.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_workbench2_configuration.sls index 629910eb8a..081be151ef 100644 --- a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_workbench2_configuration.sls +++ b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_workbench2_configuration.sls @@ -37,14 +37,10 @@ nginx: - server_name: workbench2.__DOMAIN__ - listen: - __CONTROLLER_EXT_SSL_PORT__ http2 ssl - - index: index.html index.htm + - location /: - - root: /var/www/arvados-workbench2/workbench2 - - try_files: '$uri $uri/ /index.html' - - 'if (-f $document_root/maintenance.html)': - - return: 503 - - location /config.json: - - return: {{ "200 '" ~ '{"API_HOST":"__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__"}' ~ "'" }} + - return: '301 https://workbench.__DOMAIN__$request_uri' + - include: snippets/ssl_hardening_default.conf - ssl_certificate: __CERT_PEM__ - ssl_certificate_key: __CERT_KEY__