2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
6 {%- import_yaml "ssl_key_encrypted.sls" as ssl_key_encrypted_pillar %}
19 arvados_workbench2_default.conf:
24 - server_name: workbench2.__DOMAIN__
28 - return: '301 https://$host$request_uri'
30 arvados_workbench2_ssl.conf:
37 - server_name: workbench2.__DOMAIN__
39 - __CONTROLLER_EXT_SSL_PORT__ http2 ssl
42 - return: '301 https://workbench.__DOMAIN__$request_uri'
44 - include: snippets/ssl_hardening_default.conf
45 - ssl_certificate: __CERT_PEM__
46 - ssl_certificate_key: __CERT_KEY__
47 {%- if ssl_key_encrypted_pillar.ssl_key_encrypted.enabled %}
48 - ssl_password_file: {{ '/run/arvados/' | path_join(ssl_key_encrypted_pillar.ssl_key_encrypted.privkey_password_filename) }}
50 - access_log: /var/log/nginx/workbench2.__DOMAIN__.access.log combined
51 - error_log: /var/log/nginx/workbench2.__DOMAIN__.error.log