Rocket.chat: Multiple URL to the same server

Created on 5 May 2017  路  18Comments  路  Source: RocketChat/Rocket.Chat


Hello guys,

We have an interesting use case that showed us a little problem, check the example bellow.

We have a server configured with the site URL as "https://weloverocketchat.com", in front of it, there's a proxy that allow users be able to access the server with different url's like "https://weloverocketchat.com.br", "https://loverocketchat.com", "https://rocketchatisthebest.com". Note that it is not a redirect because the browser should preserve the accessed url.

When we access the server with a different url that was configured, we got two little problems:

1) A warning popup to administrator.
image

2) An error when try to get some image from AWS S3 bucket:
The server response "403 Forbidden" when try GET {Site_URL}/file-upload/KfR8qJwaxxKWFAmrd/photo.jpg

As possible solutions suggestions, we can avoid this kind of verifications with the default site url, or make the "Site_URL" parameter a list.

What do you think about that?

Rocket.Chat Version: 0.49.3
Running Instances: 1
DB Replicaset OpLog: Enabled
Node Version: v4.5.0

Planned app settings file sharing

Most helpful comment

multiple url very usefull when you use rocket.chat as livechat service on multiple sites.

All 18 comments

@engelgabriel

This is something I have been meaning to suggest as well since I run my instance in a similar manner; it is accessible from three different domains (.onion notwithstanding).

馃憤

@rodrigok

Related to #2912

I want this feature too. Any new about it?

This is quite an important feature to us, is there any way to make this work as it stands?

@florealcab & @publicvirtualvoid have multiple URLs is not recommended, even if we change the file/avatar access to be relative to the current URL what happens when Rocket.Chat sends an email to the users containing a different URL (he will be redirected to a address where he is not logged in)?

Can you explain why you can't redirect the other URLs to your main URL?

@rodrigok I think we can have a main URL and alternative ones. Mails are sent to the main URL, no problem for me (indeed if the user is logged with the other one, it should not work as you say but it's not a problem for me).

In my case, my main URL can be blocked on institutions using bad configured proxy, so I have an alternative URL which use a CDN to add a proxy between client and server. But I want to keep a direct connexion when all is working. That's why I have to use 2 URLs

The behaviour @florealcab suggested would work for us.

@rodrigok we want to change our main domain for certificate/SSL reasons but there are an unknown number of external integrations hitting the existing domain.

I need this feature. Different URL is used with intra site and internet site.
file-upload URL is absolute path using ROOT_URL. Relative path would be nice.

This is an essential feature, especially in cases where the URL for intranet access is different from external.
Would also be helpful if you could wildcard the protocol (i.e. allow both http and https)

As for URLs in e-mail, could add a "PREFERRED URL" field for that purpose.

Any updates since it was not released in 0.74.0 and January has already ended?

We are now up to the 1.1 version... any news about this feature ? @marceloschmidt

multiple url very usefull when you use rocket.chat as livechat service on multiple sites.

In the latest version of Rocket Chat, I have not the warning anymore when I access with an URL other than the main one. So is it fixed?

It's not true, I haven't it but it's back (without updating), so the problem is still unsolved. Hope it will be implemented soon...

Hello, is there any progress on this? I have a Rocket.Chat instance running with four different URLs. It all works fine with the Site URL unset, except the quotes, they only work from one URL. If a user quotes a message from a different URL that points to the Instance, but is not set with the Site URL, the quote will result in a message with a hyperlink.

Any suggestions on this are welcome ..

Screenshot 2020-11-19 193657

I really wish they would allow multiple URL definitions.

For example, I need to somehow get the SSL reverse proxy working (I am currently using the web client on Android because the regular one now requires SSL) but I can't really test the reverse proxy and still have the old URL still work since the URL isn't quite the same.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

engelgabriel picture engelgabriel  路  3Comments

zeigerpuppy picture zeigerpuppy  路  3Comments

Buzzele picture Buzzele  路  3Comments

ghost picture ghost  路  3Comments

brendanheywood picture brendanheywood  路  3Comments