Can't get static assets working when using a subpath #3648
Unanswered
MoreDreadd
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
first of all: I can use the basics of docker and nginx, but I'm far away from being an expert.
That said: I set up tandoor using docker and traefik as reverse proxy. As I want to be able to serve multiple webservers on my URL, I configured a subpath for tandoor (/repices). I also set the SCRIPT_NAME environment variable via docker compose file.
But when loading the page, I get a lot of errors in the console like

GET http://mypage.net/static/js/jquery-3.5.1.min.dc5e7f18c8d3.js net::ERR_ABORTED 404 (Not Found), and the page looks very weird:I found the part in the docs where it says I need to alter the nginx config (or at least that is what I understood), but as the config file is only somewhere in the docker containers, I don't know how to do this.
Maybe someone can help me and explain what I have to do to edit the nginx config file, or solve this problem another way.
Beta Was this translation helpful? Give feedback.
All reactions