X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f3a1fcb306856fc904c7e8051ccb69ea85e5640f..f1a48936453b1017d192a40b0b84d71777011071:/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_websocket_configuration.sls diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_websocket_configuration.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_websocket_configuration.sls index 078f916cbe..f80eeb96b6 100644 --- a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_websocket_configuration.sls +++ b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_websocket_configuration.sls @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: AGPL-3.0 -{%- import_yaml "ssl_key_encrypted.sls" as imported %} +{%- import_yaml "ssl_key_encrypted.sls" as ssl_key_encrypted_pillar %} ### NGINX nginx: @@ -23,7 +23,7 @@ nginx: overwrite: true config: - server: - - server_name: ws.__CLUSTER__.__DOMAIN__ + - server_name: ws.__DOMAIN__ - listen: - 80 - location /: @@ -36,7 +36,7 @@ nginx: __CERT_REQUIRES__ config: - server: - - server_name: ws.__CLUSTER__.__DOMAIN__ + - server_name: ws.__DOMAIN__ - listen: - __CONTROLLER_EXT_SSL_PORT__ http2 ssl - index: index.html index.htm @@ -58,8 +58,8 @@ nginx: - include: snippets/ssl_hardening_default.conf - ssl_certificate: __CERT_PEM__ - ssl_certificate_key: __CERT_KEY__ - {%- if imported.ssl_key_encrypted.enabled %} - - ssl_password_file: {{ imported.ssl_key_encrypted.ssl_password_file }} + {%- 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/ws.__CLUSTER__.__DOMAIN__.access.log combined - - error_log: /var/log/nginx/ws.__CLUSTER__.__DOMAIN__.error.log + - access_log: /var/log/nginx/ws.__DOMAIN__.access.log combined + - error_log: /var/log/nginx/ws.__DOMAIN__.error.log