-
-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get images working - using Nginx Proxy Manager #3352
Comments
|
Thank you but I am using a separate Nginx container (in the form of Nginx Proxy Manager). I just don't understand how to configure it - nothing works. How do I configure the location? And what should it point to? And do I need to map any volumes to NPM? Would appreciate an example config for this. :) |
Like you, I also use an ‘external’ reverse proxy in the network.
in the ‘.env’ file. It is recommended to use a separate web server such as Nginx to deliver the static and media files, as Gunicorn is not optimised for this task and this can lead to performance problems or errors such as the 404 you described. Option 1: Set up Nginx as a proxy for media files It is best to use Nginx to deliver the media files correctly. You can define a separate block for the media files in your Nginx setup. Option 2: Have Gunicorn deliver media files (not recommended) However, this is not recommended because, as already mentioned, it can lead to poorer performance and possible security risks. I myself have now set it to |
Issue
Hi!
I'm kind of new at this and am trying to get Tandoor working with Nginx Proxy Manager, and I cannot for the life of me understand how I need to configure the reverse proxy.
I've set 8080:8080 for Tandoor, and configured NPM to listen on the default 80, 81 and 443 ports. I also added this volume (not sure if it's needed?): /docker/tandoor/mediafiles:/media:ro
Then I've configured a new proxy host with this config:
Domain Names: recipes.myrealdomain.com
Scheme: http
Forward hostname/IP: my server IP
Forward Port: 8080
Everything works so far, I can reach the site but images get 404. I assume there's some mismatch with the folders but after a lot of googling I still don't understand what I'm doing wrong.
I tried adding this under "Custom locations":
Define location: /media/
Scheme: http
Forward hostname/IP: my server IP
Forward Port: 8080
Advanced parameters: root /docker/tandoor/mediafiles/; (I've tried both with and without anything there, tried alias /mediafiles/, nothing works)
I really appreciate an ELI5 here - how should I configure? :) Thank you!
Tandoor Version
1.5.19
OS Version
22.04.4 LTS
Setup
Docker / Docker-Compose
Reverse Proxy
Nginx Proxy Manager (NPM)
Other
No response
Environment file
Docker-Compose file
Relevant logs
The text was updated successfully, but these errors were encountered: