X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c7d5ee39c43e603f1b8701860f54693017578404..763e5bd313592a1c1f161b80bc07c94a49f8fb91:/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_controller_configuration.sls diff --git a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_controller_configuration.sls b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_controller_configuration.sls index 5df1870c80..d0fd6a1312 100644 --- a/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_controller_configuration.sls +++ b/tools/salt-install/config_examples/multi_host/aws/pillars/nginx_controller_configuration.sls @@ -3,6 +3,8 @@ # # SPDX-License-Identifier: AGPL-3.0 +{%- import_yaml "ssl_key_encrypted.sls" as ssl_key_encrypted_pillar %} + ### NGINX nginx: ### SERVER @@ -26,7 +28,7 @@ nginx: overwrite: true config: - server: - - server_name: __CLUSTER__.__DOMAIN__ + - server_name: __DOMAIN__ - listen: - 80 default - location /.well-known: @@ -41,7 +43,7 @@ nginx: __CERT_REQUIRES__ config: - server: - - server_name: __CLUSTER__.__DOMAIN__ + - server_name: __DOMAIN__ - listen: - __CONTROLLER_EXT_SSL_PORT__ http2 ssl - index: index.html index.htm @@ -64,6 +66,9 @@ nginx: - include: snippets/ssl_hardening_default.conf - ssl_certificate: __CERT_PEM__ - ssl_certificate_key: __CERT_KEY__ - - access_log: /var/log/nginx/controller.__CLUSTER__.__DOMAIN__.access.log combined - - error_log: /var/log/nginx/controller.__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/controller.__DOMAIN__.access.log combined + - error_log: /var/log/nginx/controller.__DOMAIN__.error.log - client_max_body_size: 128m