-
Hi there, I'm trying to deploy a dev env. (branch master) behind a traefik proxy, which is already in use for other container on that VM. The Inventree env. just work fine without traefik handling the request. The DC file is (with some of my test for traefik) :
But I always land on a 504 Gateway Timeout : Is there something I missed ? or any clue? Docker version 20.10.17, build 100c701 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Do you have the Traefik proxy on the same docker network as InvenTree? I suggest to try without "/stock" completely, to make sure you get it to work without making any adjustments to paths. |
Beta Was this translation helpful? Give feedback.
-
Shame on me..... thanks @miggland , that was a misspelled network name.... I'm now stucked on a 302 reponse... but it's moving on! |
Beta Was this translation helpful? Give feedback.
-
Good, then keep trying! 👍 Do you actually want to be able to use both http and https entrypoints? Or do you want redirection to https if the http address is called? If the second is the case, you should put the redirection in the entrypoint definition, ie on the Traefik container, and not on InvenTree. Something like this should be in the Traefik config:
and your InvenTree entrypoint is then:
|
Beta Was this translation helpful? Give feedback.
-
Thanks migglant, everything is redirected to 443 in the environment of the vm! I've [edit do not] solved my issue, but really not ellegantly! Is there anywhere to set the 'Base URL' parameter except from inventree app directly? => I've done it by making the docker redirect to the root url to access inventree, set the base URL in the setting and revert it to the '/stock' sub url. it works, but it's not something I would do for the 'prod' step! [edit] Ok i have to work a lilttle more, there is no redirection using base url... |
Beta Was this translation helpful? Give feedback.
Do you have the Traefik proxy on the same docker network as InvenTree?
I suggest to try without "/stock" completely, to make sure you get it to work without making any adjustments to paths.