+
+server {
+ listen 0.0.0.0:443 ssl;
+ server_name public-workbench2;
+
+ ssl on;
+ ssl_certificate /etc/ssl/certs/workbench.pem;
+ ssl_certificate_key /etc/ssl/private/workbench.key;
+
+ # Workbench2 uses a call to /config.json to bootstrap itself
+ # and find out where to contact the API server.
+ location /config.json {
+ return 200 '{ "API_HOST": "{{ .Values.externalIP }}:444" }';
+ }
+
+ location / {
+ root /var/www/arvados-workbench2/workbench2;
+ index index.html;
+ try_files $uri $uri/ /index.html;
+ }
+}