-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bug: Action Cable does not work with custom self hosted domains via reverse proxy #1505
Comments
@EsdrubalMagano this appears to be an app configuration issue as it is not reproducible via the issue description. Could you provide some more info and/or logs? |
Docker configuration look's good, I see these errors on docker logs: maybe-app-1 | [9917228f-adb2-48fe-8d48-e079474a6a8c] rack (3.1.8) lib/rack/sendfile.rb:114:in But it's strange, because I have WebSockets in Nginx config:
|
@EsdrubalMagano does this configuration work? location / {
proxy_pass http://localhost:3001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
} This configuration has been working for most self-hosters. I don't think you need to add the extra websockets config. I'm going to close this out as it is not something we can do anything about with the Maybe app. |
Same error, and docker logs: maybe-app-1 | I, [2024-11-27T14:04:32.633800 #1] INFO -- : [4d1eaa0c-5674-465d-8944-a2abed286843] Started GET "/cable" for 149.88.20.130 at 2024-11-27 14:04:32 +0000 |
@EsdrubalMagano looking into this a bit further, this may actually be something we could set via ENV vars so that custom domains work properly: config.action_cable.allowed_request_origins = ["https://maybe.example.com"] Reopening and renaming the issue so we can get some more eyes on it. |
I also changed the default ports in the docker compose in case that could related in some way:
|
Describe the bug
When adding a new account I get the following error:
In console I see the following error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
What version of Maybe are you using?
Self-hosted Version: v0.2.0-alpha.2 using docker
What operating system and browser are you using?
Windows 11 and Brave
Screenshots / Recordings
Additional context
I already tried to rebuild the docker container, no luck, also tried to disable Brave Adblocker.
The text was updated successfully, but these errors were encountered: