19015: installer fix: work around a Passenger issue with the detection of RVM
[arvados.git] / tools / salt-install / config_examples / single_host / single_hostname / pillars / nginx_websocket_configuration.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 ### NGINX
7 nginx:
8   ### SERVER
9   server:
10     config:
11       ### STREAMS
12       http:
13         upstream websocket_upstream:
14           - server: '__IP_INT__:8005 fail_timeout=10s'
15
16   servers:
17     managed:
18       arvados_websocket_ssl.conf:
19         enabled: true
20         overwrite: true
21         requires:
22           __CERT_REQUIRES__
23         config:
24           - server:
25             - server_name: __HOSTNAME_EXT__
26             - listen:
27               - __WEBSOCKET_EXT_SSL_PORT__ http2 ssl
28             - index: index.html index.htm
29             - location /:
30               - proxy_pass: 'http://websocket_upstream'
31               - proxy_read_timeout: 600
32               - proxy_connect_timeout: 90
33               - proxy_redirect: 'off'
34               - proxy_set_header: 'Host $host'
35               - proxy_set_header: 'X-Real-IP $remote_addr'
36               - proxy_set_header: 'Upgrade $http_upgrade'
37               - proxy_set_header: 'Connection "upgrade"'
38               - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
39               - proxy_buffering: 'off'
40             - client_body_buffer_size: 64M
41             - client_max_body_size: 64M
42             - proxy_http_version: '1.1'
43             - proxy_request_buffering: 'off'
44             - include: snippets/ssl_hardening_default.conf
45             - ssl_certificate: __CERT_PEM__
46             - ssl_certificate_key: __CERT_KEY__
47             - access_log: /var/log/nginx/ws.__CLUSTER__.__DOMAIN__.access.log combined
48             - error_log: /var/log/nginx/ws.__CLUSTER__.__DOMAIN__.error.log