X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9539317a22d8ea16f94b0e086507ab595d758216..3a35c1dca48cf1470690be5c021046ac87faaa21:/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 a821b521fa..629910eb8a 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 @@ -3,6 +3,8 @@ # # SPDX-License-Identifier: AGPL-3.0 +{%- import_yaml "ssl_key_encrypted.sls" as ssl_key_encrypted_pillar %} + ### ARVADOS arvados: config: @@ -19,7 +21,7 @@ nginx: overwrite: true config: - server: - - server_name: workbench2.__CLUSTER__.__DOMAIN__ + - server_name: workbench2.__DOMAIN__ - listen: - 80 - location /: @@ -32,7 +34,7 @@ nginx: __CERT_REQUIRES__ config: - server: - - server_name: workbench2.__CLUSTER__.__DOMAIN__ + - server_name: workbench2.__DOMAIN__ - listen: - __CONTROLLER_EXT_SSL_PORT__ http2 ssl - index: index.html index.htm @@ -42,9 +44,12 @@ nginx: - 'if (-f $document_root/maintenance.html)': - return: 503 - location /config.json: - - return: {{ "200 '" ~ '{"API_HOST":"__CLUSTER__.__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__"}' ~ "'" }} + - return: {{ "200 '" ~ '{"API_HOST":"__DOMAIN__:__CONTROLLER_EXT_SSL_PORT__"}' ~ "'" }} - include: snippets/ssl_hardening_default.conf - ssl_certificate: __CERT_PEM__ - ssl_certificate_key: __CERT_KEY__ - - access_log: /var/log/nginx/workbench2.__CLUSTER__.__DOMAIN__.access.log combined - - error_log: /var/log/nginx/workbench2.__CLUSTER__.__DOMAIN__.error.log + {%- if ssl_key_encrypted_pillar.ssl_key_encrypted.enabled %} + - ssl_password_file: {{ '/run/arvados/' | path_join(ssl_key_encrypted_pillar.ssl_key_encrypted.privkey_password_filename) }} + {%- endif %} + - access_log: /var/log/nginx/workbench2.__DOMAIN__.access.log combined + - error_log: /var/log/nginx/workbench2.__DOMAIN__.error.log