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

Set Heisenbridge media URL #2932

Closed
Firefishy opened this issue Oct 5, 2023 · 4 comments
Closed

Set Heisenbridge media URL #2932

Firefishy opened this issue Oct 5, 2023 · 4 comments

Comments

@Firefishy
Copy link

Firefishy commented Oct 5, 2023

Describe the bug
Heisenbridge by default uses the matrix_heisenbridge_homeserver_url as the media url which is set to matrix_homeserver_container_url (matrix-nginx-proxy:12080). The ansible code should set a correct media URL, as heisenbridge now supports setting a separate media url.

To Reproduce

Expected behavior
Expectation the url is the external https://matrix.example.com/...

@Firefishy
Copy link
Author

A workaround for the moment is to override the MEDIAURL within matrix by sending private messaging to the heisenbridge bot with a command: mediaurl https://matrix.example.com/.

Ideally heisenbridge should be supplied with the correct mediaurl out-the-box by ansible.

@signaleleven
Copy link

If you mean the domain used when you post media in a bridged chat

matrix_heisenbridge_homeserver_url: "example.tld"

does what you need

@spantaleev
Copy link
Owner

For my setup, I didn't find this to be necessary, because it was auto-detecting the media URL by itself:

matrix-heisenbridge[1127966]: Trying to detect homeserver public endpoint, this might take a while...
matrix-heisenbridge[1127966]: Homeserver is publicly available at https://matrix.DOMAIN

Nevertheless, given that we know the value, there's no need for this guessing game.

The playbook now configures the media_url explicitly, using matrix_homeserver_url.

@Firefishy
Copy link
Author

Rockstars! Thank you for being awesome. :-)

KarolosLykos pushed a commit to KarolosLykos/matrix-docker-ansible-deploy that referenced this issue Mar 5, 2024
Without explicitly passing the `media_url` configuration,
Heisenbridge would try to guess it. It works most of the time,
but some people are experiencing trouble with it.

There's no need for wasteful work and for potential unreliability,
so we now configure the `media_url` explicitly.

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

No branches or pull requests

3 participants