Nginx reverse proxy not getting js and css files #4468
Unanswered
Stevenjohnlally
asked this question in
Q&A
Replies: 1 comment
-
Not with the default Docker image. It only supports reverse proxies from the root directory. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running Firefly III version 5.4.6 with docker.
Description
I have a domain with duckdns so that I can expose my service to the public. I'll use example.duckdns.org as the placeholder here because I don't want to let just anyone use it.
I have the firefly container's port 8080 attached to port 49152 of the host machine.
I have set up NginX as a reverse proxy on the host machine so that any requests that look like this, http://example.duckdns.org/firefly, will be forwarded to the docker container.
Here is my NginX config server block.
I can load the login page fine by going to http://example.duckdns.org/firefly/login
I inspected the web app and see that the base href is set to http://example.duckdns.org/
Therefore the assets are requested as http://example.duckdns.org/v1/lib/bs/css/bootstrap.min.css?v=5.4.6
instead of http://example.duckdns.org/firefly/v1/lib/bs/css/bootstrap.min.css?v=5.4.6 which would work fine.
How can I set it up so that the base href is set to http://example.duckdns.org/firefly/?
Beta Was this translation helpful? Give feedback.
All reactions