~$ sudo apt-get install arvados-workbench2
~$ sudo yum install arvados-workbench2
Edit the http section of your Nginx configuration to serve Workbench2's files. You might add a block like the following, adding SSL and logging parameters to taste:
server {
listen [your public IP address]:443 ssl;
server_name workbench2.uuid-prefix.your.domain;
ssl on;
ssl_certificate /YOUR/PATH/TO/cert.pem;
ssl_certificate_key /YOUR/PATH/TO/cert.key;
index index.html;
# Workbench2 uses a call to /config.json to bootstrap itself and talk to the desired API server
location /config.json {
return 200 '{ "API_HOST": "uuid-prefix.your.domain" }';
}
location / {
root /var/www/arvados-workbench2/workbench2;
index index.html;
try_files $uri $uri/ /index.html;
if (-f $document_root/maintenance.html) {
return 503;
}
}
}
irb(main):001:0> wb = ApiClient.all.last; [wb.url_prefix, wb.created_at]
=> ["https://workbench2.uuid_prefix.your.domain/", Sat, 20 Apr 2019 01:23:45 UTC +00:00]
irb(main):002:0> include CurrentApiClient
=> true
irb(main):003:0> act_as_system_user do wb.update_attributes!(is_trusted: true) end
=> true