2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
13 upstream websocket_upstream:
14 - server: 'ws.internal:8005 fail_timeout=10s'
19 arvados_websocket_default:
24 - server_name: ws.__CLUSTER__.__DOMAIN__
27 - location /.well-known:
30 - return: '301 https://$host$request_uri'
32 arvados_websocket_ssl:
37 - server_name: ws.__CLUSTER__.__DOMAIN__
39 - __HOST_SSL_PORT__ http2 ssl
40 - index: index.html index.htm
42 - proxy_pass: 'http://websocket_upstream'
43 - proxy_read_timeout: 600
44 - proxy_connect_timeout: 90
45 - proxy_redirect: 'off'
46 - proxy_set_header: 'Host $host'
47 - proxy_set_header: 'X-Real-IP $remote_addr'
48 - proxy_set_header: 'Upgrade $http_upgrade'
49 - proxy_set_header: 'Connection "upgrade"'
50 - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
51 - proxy_buffering: 'off'
52 - client_body_buffer_size: 64M
53 - client_max_body_size: 64M
54 - proxy_http_version: '1.1'
55 - proxy_request_buffering: 'off'
56 - include: 'snippets/arvados-snakeoil.conf'
57 - access_log: /var/log/nginx/ws.__CLUSTER__.__DOMAIN__.access.log combined
58 - error_log: /var/log/nginx/ws.__CLUSTER__.__DOMAIN__.error.log