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
Android App Notification: Could not connect / Bad Request #650
Comments
Does the webapp work? Add your gotify/server log. Add your nginx config. Add the gotify/android log. |
Webapp works fine. This is the server log from after rebooting my phone and connecting via WAN:
Need to set GOTIFY_SERVER_RESPONSEHEADERS={X-Custom-Header: "custom value", x-other: value} ?????? I'm having some trouble with getting the app logs. First they were April 8 through 9 only. I deleted and rebooted. Log started filling with current reconnection info, but when I try to copy the app freezes with Android popping up a close/wait choice. I managed to get a screenshot: |
There is no nginx config in the gotify container. The logs indicate a misconfigured reverse proxy. If you are using nginx, you need to configured the settings listed in https://gotify.net/docs/nginx |
I'm not (knowingly) using nginx. As mentioned I've got a Traefik container running the reverse proxy. Do I need to modify my Traefik config pointing to the Gotify container or create a nginx config in the Gotify container? |
Sorry misread about nginx. Show your full treafik config. Do you have anything else between the reverse proxy and your phone? Cloudflare tunnel or similar? |
No Cloudflare tunnel, just Traefik. I do use Cloudflare DNS. I just checked it and gotify is going through a proxy wildcard record to the domain. I'm going to create a non-proxied CNAME for it and see if it makes a difference. Doing now, will check and report back later. I'm going to guess the labels for Traefik in the container are of more interest:
|
Happy to report that turning off Cloudflare proxying solved the problem! Any additions to the documentation on this and how to make it work via CF proxy would be welcome. |
Have you read the documentation?
You are setting up gotify in
Describe your problem
Android app notification gives error:
This is related to #462 but my config is different. I'm running Traefik using LetsEncrypt in front of the gotify container, not the built-in nginx reverse proxy.
I've read https://gotify.net/docs/config and am confident the answer lies there in the environmental variables, I'm just not sure how they apply to my setup; i.e. GOTIFY_SERVER_SSL_LETSENCRYPT_ENABLED is true in my situation but not done via nginx in the gotify container. Which variables are applicable with a reverse proxy outside the container? I've only gone so far as setting GOTIFY_SERVER_SSL_REDIRECTTOHTTPS=true and GOTIFY_SERVER_SSL_LETSENCRYPT_HOSTS=[mydomain.tld] but that didn't solve the problem.
Love the full suite of apps, thank you for them.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: