-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
"Instructions" not showing when using reverse proxy #3446
Comments
your reverse proxy, most likely, isn't setting headers properly. |
@smilerz That's what I have found as well, but there is a lot of variations in the fixes that have supposedly worked for people. I haven't been able to find a solution yet. Do you by chance happen to have a working reverse proxy config file we can take a look at? |
which header are you missing? |
Not entirely sure. I think I've added all the ones that were missing, along with the example they gave on the site. Here is my config. `server {
}
} |
Missed one, HTTP_X_FORWARDED_PROTO, but it still doesnt work. |
can you please share the headers as seen by tandoor |
I added the following configs to the nginx config for header logging, `log_format custom_format '$remote_addr - $remote_user [$time_local] "$request" ' access_log /var/log/nginx/access.log custom_format;` It produced this log 10.0.3.7 - - [08/Jan/2025:22:59:30 +0000] "GET /manifest.json HTTP/1.0" 200 1420 "https://recipes.xxxx.com/search/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" "10.0.3.1" Headers: 10.0.3.1 recipes.xxxx.com - |
I am adding more headers to the log |
log_format custom_format '$remote_addr - $remote_user [$time_local] "$request" ' Headers: 10.0.3.1 recipes.burningcrowhosting.com - recipes.burningcrowhosting.com - https |
they are listed in /system/ under Debug |
Ah, found it. Gunicorn Media: False SERVER_PROTOCOL:HTTP/1.0 HTTP_HOST:recipes.xxx.com wsgi.errors:<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fa50c4c7820> |
@smilerz the Tandoor server was overwriting the header. `server {
} |
@Engr-AllanG On top of making certain your reverse proxy server is set with the proper header values, you need to edit the nginx config /etc/nginx/conf.d/recipes.conf on the Tandoor server as well, and change the X-Forwarded-Proto to https instead of $scheme. That worked for me. |
Ok I will check this out this weekend and report back. I am fairly certain I have it correct in my reverse proxy, so I suspect it's the tandoor config issues that you pointed out. I'll see what I find and reply here
Thank you
Get BlueMail for Android
…On Jan 8, 2025, 6:45 PM, at 6:45 PM, SpacemanSpiffy1 ***@***.***> wrote:
@Engr-AllanG On top of making certain your reverse proxy server is set
with the proper header values, you need to edit the nginx config
/etc/nginx/conf.d/recipes.conf on the Tandoor server as well, and
change the X-Forwarded-Proto to https instead of $scheme. That worked
for me.
--
Reply to this email directly or view it on GitHub:
#3446 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Issue
Hello,
I Cannot get the "instruction" section to show when using a reverse proxy. When accessing the application using the local IP address, it works fine.
The untare android app, which is using my public domain name and therefore is going through my reverse proxy, seems to find the directions block.
I am using the supplied docker setup with the dedicated nginx container. I have a separate reverse proxy in a separate proxmox container. Images in tandoor are loading fine.
Any help would be appreciated, thank you
Tandoor Version
1.5.24
OS Version
Ubuntu 22.04
Setup
Docker / Docker-Compose
Reverse Proxy
Others (please state below)
Other
nginx, seperate proxmox container
Environment file
Docker-Compose file
Relevant logs
The text was updated successfully, but these errors were encountered: