You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have an issue with my new, clean install of Tandoor.
I am running it on docker swarm, the files are sitting in an nfs mount. Everything is local only, nothing is accessible from the internet.
Which is working, except for the images that do not load. They are being stored in /media folder but accessing them gives me a 403 Forbidden by nginx.
Everything I found online is related to the old config where nginx is deployed separately from the recipes, I could not find any workaround to get this running.
As you can see above, I already tried adding ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS. I also tried using GUNICORN_MEDIA which also didn't work.
HTTP_HOST:192.168.170.160:8080
HTTP_X_FORWARDED_FOR:10.0.0.112
HTTP_CONNECTION:close
HTTP_USER_AGENT:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15
HTTP_UPGRADE_INSECURE_REQUESTS:1
HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
HTTP_ACCEPT_LANGUAGE:de-DE,de;q=0.9
HTTP_PRIORITY:u=0, i
HTTP_ACCEPT_ENCODING:gzip, deflate
The IP 192.168.170.160 is my floating ip for the docker swarm. Accessing it directly via the ipvlan address changes nothing except the HTTP_X_FORWARDED_FOR is not the internal docker IP but my computers.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
i have an issue with my new, clean install of Tandoor.
I am running it on docker swarm, the files are sitting in an nfs mount. Everything is local only, nothing is accessible from the internet.
here's my stack configuration:
Which is working, except for the images that do not load. They are being stored in /media folder but accessing them gives me a 403 Forbidden by nginx.
Everything I found online is related to the old config where nginx is deployed separately from the recipes, I could not find any workaround to get this running.
As you can see above, I already tried adding ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS. I also tried using GUNICORN_MEDIA which also didn't work.
Here's the output of the header under /system:
The IP 192.168.170.160 is my floating ip for the docker swarm. Accessing it directly via the ipvlan address changes nothing except the HTTP_X_FORWARDED_FOR is not the internal docker IP but my computers.
Can anyone point me in the right direction here?
Beta Was this translation helpful? Give feedback.
All reactions