Ensure that the application static files are available in Voila.

This commit is contained in:
Phil Elson 2020-11-20 13:19:24 +01:00
parent ce446dad33
commit 0d33c3cd08
3 changed files with 3 additions and 1 deletions

View file

@ -58,6 +58,7 @@ http {
proxy_read_timeout 86400;
}
rewrite ^/expert-app$ /voila-server/voila/render/cara.ipynb last;
rewrite ^/(files/static)/(.*)$ /voila-server/voila/$1/$2 last;
# Before implementing the nginx router we could access /voila/render/cara.ipynb.
# Redirect this (and all other) URLs to the new scheme.

View file

@ -5,7 +5,7 @@
"metadata": {},
"source": [
"<div style=\"text-align: center;\" align=\"center\">\n",
"<img src=\"../../files/cara/apps/static/images/cara_logo_text_tight_margins.png\" align=\"center\" style=\"text-align: center;\" /></div>\n",
"<img src=\"../files/static/images/cara_logo_text_tight_margins.png\" align=\"center\" style=\"text-align: center; height: 12em;\" /></div>\n",
"<p style=\"color: blue; font-weight: bold; font-size: x-large; text-align: center;\" align=\"center\">\n",
"Airborne Transmission of SARS-CoV-2\n",
"</p>"

1
app/static Symbolic link
View file

@ -0,0 +1 @@
../cara/apps/static