1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
7 server_name localhost-workbench;
9 root /var/www/arvados-workbench/current/public;
10 index index.html index.htm index.php;
13 # If you're using RVM, uncomment the line below.
14 passenger_ruby /usr/local/rvm/wrappers/default/ruby;
16 # `client_max_body_size` should match the corresponding setting in
17 # the API server's Nginx configuration.
18 client_max_body_size 128m;
22 server 127.0.0.1:9000 fail_timeout=10s;
25 proxy_http_version 1.1;
28 listen 0.0.0.0:445 ssl;
29 server_name public-workbench;
32 ssl_certificate /etc/ssl/certs/workbench.pem;
33 ssl_certificate_key /etc/ssl/private/workbench.key;
35 index index.html index.htm index.php;
36 # `client_max_body_size` should match the corresponding setting in
37 # the API server's Nginx configuration.
38 client_max_body_size 128m;
41 proxy_pass http://workbench;
43 proxy_connect_timeout 90s;
44 proxy_read_timeout 300s;
46 proxy_set_header X-Forwarded-Proto https;
47 proxy_set_header Host $http_host;
48 proxy_set_header X-Real-IP $remote_addr;
49 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
54 listen 0.0.0.0:443 ssl;
55 server_name public-workbench2;
58 ssl_certificate /etc/ssl/certs/workbench.pem;
59 ssl_certificate_key /etc/ssl/private/workbench.key;
61 # Workbench2 uses a call to /config.json to bootstrap itself
62 # and find out where to contact the API server.
63 location /config.json {
64 return 200 '{ "API_HOST": "{{ .Values.externalIP }}:444" }';
68 root /var/www/arvados-workbench2/workbench2;
70 try_files $uri $uri/ /index.html;