Error 400 - Untrusted host with TRUSTED_HOSTS and TRUSTED_PROXIES #415
-
I made a docker compose install. However, we also configured a frontend nginx reverse proxy (in another docker container) that handles all incomming http/https calls on a named basis. For the kimai service this is lets say kimai.mydom.com And then I get an Error 400 in the browser. In the logs I see:
In the kimai docker compose config file I added kimai.mydom.com as well as the LAN_IP of the 'frontend reverse proxy' to the TRUSTED_HOSTS and eventually tried to add them as well to the TRUSTED_PROXIES of the nginx . I restarted the compose several times. Any hint? THx, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Forget I asked .. found the solution C. |
Beta Was this translation helpful? Give feedback.
Forget I asked .. found the solution
I guess I don't know docker compose well enough.
I just did a 'down' and 'up' instead of 'restart'... and that seems to make a difference. I have the feeling a 'restart' is not reading the docker compose file again .. so you can change the compose and restart all you want... but it's not untill you 'down' the container/compose it hase any effect.
C.