nginx config:
server {
listen 8080;
server_name localhost;
access_log off;
location /static/ {
alias /opt/app/app/static/;
}
location / {
proxy_pass http://app:8001;
}
}
}
Hiawatha config:
VirtualHost {
set THIS = mydomain
Hostname = THIS
WebsiteRoot = /var/www/THIS
RequiredBinding = http, https
...
Alias = /static:/opt/app/app/static
ReverseProxy = ^/app/ http://app:8001
}