My dash app is running on port 7000
I’ve configured it to be proxied by Nginx as follows
location /godash {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Script-Name /godash;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_max_temp_file_size 0;
rewrite /godash/(.*) /godash/$1 break;
proxy_pass http://localhost:7000;
proxy_redirect off;
proxy_read_timeout 240s;
}
Even with all of this, it seems dash is trying to server everything from the root ‘/’
I get errors like this
Refused to execute script from 'https://mysite.example.com/_dash-component-suites/dash_renderer/polyfill@7.v1_3_0m1586525360.8.7.min.js'
I would expect everything to be served from
https://mysite.example.com/godash
yet assets and _dash-components are being served from the root instead.
Is there a way to tell dash to serve everything from a specific path instead of the root ‘/’?