Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add streaming API base URL to prevent websocket connection problem #24

Merged

Conversation

SailReal
Copy link
Contributor

@SailReal SailReal commented May 1, 2022

As we set in

- 'traefik.http.routers.mastodon-streaming.rule=Host(`mastodon-streaming.${SITE:-localhost}`)'

a sub domain for the streaming websocket, we need to provide the URL via STREAMING_API_BASE_URL too, otherwise the browser tries to connect to wss://mastodon.example.com which obviously fails.

See https://docs.joinmastodon.org/admin/config/#streaming-api-base-url for more information.

@SailReal SailReal force-pushed the feature/add-mastodon-wss-url branch from 03a2e0a to 74d6fe2 Compare May 1, 2022 19:19
@SailReal SailReal force-pushed the feature/add-mastodon-wss-url branch from 74d6fe2 to 04c073a Compare May 1, 2022 19:21
Copy link
Owner

@tomMoulard tomMoulard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌

@tomMoulard tomMoulard merged commit bfee8cf into tomMoulard:master May 2, 2022
@SailReal SailReal deleted the feature/add-mastodon-wss-url branch May 2, 2022 16:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants