Skip to content
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

not being able to connect to my gotify server #339

Closed
Spleenftw opened this issue Mar 16, 2024 · 8 comments
Closed

not being able to connect to my gotify server #339

Spleenftw opened this issue Mar 16, 2024 · 8 comments

Comments

@Spleenftw
Copy link

hello,

my gotify is exposed behind a cloudflare tunnel.

When im trying to connect to it with my phone, it says the following error : " Request to 'https://gotify.xxx.xxx/version' failed with status code 403"

But when i'm trying with a curl or web navigator :

user@machine:~$ curl https://gotify.xxx.xxx/version
{"version":"2.4.0","commit":"97f180b65091fc6ca313d29dfc5b559aa8cd9465","buildDate":"2023-09-17-08:24:00"}

Any idea ?

@jmattheis
Copy link
Member

jmattheis commented Mar 16, 2024

Probably releated to cors. Try the solution listed in gotify/server#640 (comment). Maybe related #201

Show the gotify/server log when the 403 occurs.

@Spleenftw
Copy link
Author

Added the solution you linked :

version: "3"

services:
  gotify:
    image: gotify/server
    ports:
      - 8081:80
    environment:
      - GOTIFY_DEFAULTUSER_PASS=custom
      - GOTIFY_SERVER_CORS_ALLOWORIGINS=[xxx.xxx]
      - GOTIFY_SERVER_STREAM_ALLOWEDORIGINS=[xxx.xxx]
    volumes:
      - "/var/gotify/data:/app/data"

still not working on android.

the tunnel is configured like that :
image

@jmattheis
Copy link
Member

Show the gotify/server log when the 403 occurs.

@Spleenftw
Copy link
Author

Spleenftw commented Mar 16, 2024 via email

@jmattheis
Copy link
Member

Does opening the gotify url in a webbrowser on the phone works. If the request doesn't reach gotify I cannot help you. It's something with your setup.

@Spleenftw
Copy link
Author

Spleenftw commented Mar 16, 2024 via email

@jmattheis
Copy link
Member

@Spleenftw
Copy link
Author

lowering the security made it work. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants