Add copyright headers to comply with Arvados
[arvados-formula.git] / test / salt / pillar / examples / nginx_websocket_configuration.sls
index 01b77888a2af1afc19f3555dfce8e9a2d512da1b..5c228bada0c87b6d9031789986a959d2dfeeff43 100644 (file)
@@ -1,4 +1,8 @@
 ---
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 ### NGINX
 nginx:
   ### SERVER
@@ -7,12 +11,12 @@ nginx:
       ### STREAMS
       http:
         upstream websocket_upstream:
-          - server: '127.0.0.2: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:
@@ -25,7 +29,7 @@ nginx:
             - location /:
               - return: '301 https://$host$request_uri'
 
-      arvados_websocket:
+      arvados_websocket_ssl.conf:
         enabled: true
         overwrite: true
         config:
@@ -49,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'
+            - 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