Viewer is portable, and loadable anywhere you have Nginx.
Set data-api
to the domain where the json API is available
<section id="viewer" data-api="bsu.downstreamlabs.com"></section>
All urls should load index.html
at the [domain]/viewer/index.html
.
server {
listen 80;
server_name myproject.localhost;
location / {
# /var/www/html/project/viewer/README.md [you are here]
root /var/www/html/project;
index index.html /viewer/index.html;
location /viewer/css {}
location /viewer/js {}
try_files /viewer/index.html =404;
}
}