Closed SanaRinomi closed 3 months ago
Try deleting all users and let gotify recreate them. Gotify only uses GOTIFY_DEFAULTUSER_PASS on first start, if it was changed afterwards it won't have an effect.
Same result:
The 403 error is related to CORS. Do you have use another proxy besides nginx? I can reproduce the issue when I remove the line: proxy_set_header Host $http_host;
.
So the issue is that the Host header isn't properly forwarded. You can either try find out why the nginx setting doesn't work propertly or configure your host as allowed origin like this:
gotify:
image: gotify/server:2.4.0
environment:
- GOTIFY_SERVER_CORS_ALLOWORIGINS=[example.org]
- GOTIFY_SERVER_STREAM_ALLOWEDORIGINS=[example.org]
Ok, setting the CORS to the subdomain I want to run this on worked like a charm! Thank you so much for the help!
EDIT: Just for clarification, the proxy_set_header Host
was being set to my specific subdomain, so upon adding that to the CORS, it worked a charm.
Can the issue be reproduced with the latest available release? (y/n) y
Which one is the environment gotify server is running in?
Docker Compose
Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)
Reverse proxy configuration (please mask sensitive information)
On which client do you experience problems? (Select as many as you can see)
What did you do? Attempt to login using default credentials
What did you expect to see? Login successful
What did you see instead? (Include screenshots, android logcat/request dumps if possible)![image](https://github.com/gotify/server/assets/16209282/50479c30-7dcd-492d-b3f8-aa9e2d7084fe)
Despite proper database entry, and even trying different combinations of user and password