X-Git-Url: https://git.arvados.org/arvados-formula.git/blobdiff_plain/c238eddf242539bd669535944b70d545beeb37d0..cee31d2e436a8751425f7180ae451fbe5163db6f:/test/salt/pillar/examples/nginx_websocket_configuration.sls?ds=sidebyside diff --git a/test/salt/pillar/examples/nginx_websocket_configuration.sls b/test/salt/pillar/examples/nginx_websocket_configuration.sls index b6a2174..5c228ba 100644 --- a/test/salt/pillar/examples/nginx_websocket_configuration.sls +++ b/test/salt/pillar/examples/nginx_websocket_configuration.sls @@ -1,5 +1,7 @@ --- -{% set nginx_log = '/var/log/nginx' %} +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 ### NGINX nginx: @@ -9,17 +11,17 @@ nginx: ### STREAMS http: upstream websocket_upstream: - - server: '127.0.0.1:8005 fail_timeout=10s' + - server: 'ws.internal:8005 fail_timeout=10s' servers: managed: ### DEFAULT - arvados_ws_default: + arvados_websocket_default.conf: enabled: true overwrite: true config: - server: - - server_name: ws.example.net + - server_name: ws.fixme.example.net - listen: - 80 - location /.well-known: @@ -27,12 +29,12 @@ nginx: - location /: - return: '301 https://$host$request_uri' - arvados_websocket: + arvados_websocket_ssl.conf: enabled: true overwrite: true config: - server: - - server_name: ws.example.net + - server_name: ws.fixme.example.net - listen: - 443 http2 ssl - index: index.html index.htm @@ -51,7 +53,8 @@ nginx: - client_max_body_size: 64M - proxy_http_version: '1.1' - proxy_request_buffering: 'off' + - include: 'snippets/ssl_hardening_default.conf' # - include: 'snippets/letsencrypt.conf' - - include: 'snippets/snakeoil.conf' - - access_log: {{ nginx_log }}/ws.example.net.access.log combined - - error_log: {{ nginx_log }}/ws.example.net.error.log + - include: 'snippets/ssl_snakeoil.conf' + - access_log: /var/log/nginx/ws.fixme.example.net.access.log combined + - error_log: /var/log/nginx/ws.fixme.example.net.error.log