Add workbench2, and make it the default.
[arvados-k8s.git] / charts / arvados / templates / ws-configmap.yaml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 apiVersion: v1
6 kind: ConfigMap
7 metadata:
8   name: arvados-ws-configmap
9   labels:
10     app: {{ template "arvados.name" . }}
11     chart: {{ template "arvados.chart" . }}
12     release: {{ .Release.Name }}
13     heritage: {{ .Release.Service }}
14 data:
15   {{- (tpl (.Files.Glob "config/ws/*").AsConfig . ) | nindent 2 }}
16 ---
17 apiVersion: v1
18 kind: ConfigMap
19 metadata:
20   name: arvados-ws-https-configmap
21   labels:
22     app: {{ template "arvados.name" . }}
23     chart: {{ template "arvados.chart" . }}
24     release: {{ .Release.Name }}
25     heritage: {{ .Release.Service }}
26 data:
27   nginx.conf: |
28     upstream httpContainer {
29       server                127.0.0.1:29003;
30     }
31
32     server {
33       listen                9003 ssl;
34       server_name           arvados-ws-https;
35
36       proxy_connect_timeout 90s;
37       proxy_read_timeout    300s;
38       proxy_set_header      X-Real-IP $remote_addr;
39
40       ssl_certificate       /etc/nginx/ssl.crt;
41       ssl_certificate_key   /etc/nginx/ssl.key;
42
43       # Clients need to be able to upload blocks of data up to 64MiB in size.
44       client_max_body_size  64m;
45
46       # Redirect plain HTTP requests to HTTPS.
47       error_page 497 301 =307 https://$host:$server_port$request_uri;
48
49       location / {
50         proxy_pass          http://httpContainer;
51         proxy_set_header    Upgrade         $http_upgrade;
52         proxy_set_header    Connection      "upgrade";
53         proxy_set_header    Host            $host:$server_port;
54         proxy_set_header    X-Forwarded-For $remote_addr;
55       }
56     }