file_server
file_server copied to clipboard
issue with Nginx reverse proxy
links to style sheets, scripts and fonts are hard-coded as /-/xxx instead of -/xxx so that the service cannot run behind an Nginx proxy coexisting with other http services on the server with a same domain (actually intranet ip address).
My Nginx is configured to proxy "http://xxx/files/xxx" to "http://xxx:9002/xxx" since file server listens on port 9002.
It's not possible to use simple html rewrite because there can be arbitrary html files in the file system and they're not supposed to be rewritten.