Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Proxy through nginx #11

Open
GitHubGeek opened this issue Sep 19, 2014 · 2 comments
Open

Proxy through nginx #11

GitHubGeek opened this issue Sep 19, 2014 · 2 comments

Comments

@GitHubGeek
Copy link

Dear Zedapp Team,

For self-hosting, is it possible to proxy the zedrem daemon using nginx? If yes, would you be able to publish instructions on how to do it? Reason is to use virtual hosts to have multiple services running under port 443.

@zefhemel
Copy link
Member

Yes, but your proxy has to support websockets, otherwise it won't work. Not sure nginx does support that. — Zef

Sent from my iPhone

On Fri, Sep 19, 2014 at 3:41 AM, Jay Yu [email protected] wrote:

Dear Zedapp Team,

For self-hosting, is it possible to proxy the zedrem daemon using nginx? If yes, would you be able to publish instructions on how to do it? Reason is to use virtual hosts to have multiple services running under port 443.

Reply to this email directly or view it on GitHub:
#11

@thegaragelab
Copy link

It is possible to proxy through nginx (which does support websockets). There would need to be some changes as to how zedrem establishes the connection though:

  1. Include the 'Host' header in the connection request so nginx can correctly route the request to the appropriate virtual host. See http://nginx.org/en/docs/http/request_processing.html
  2. Add support for SNI (see http://nginx.org/en/docs/http/configuring_https_servers.html#sni) to allow the target hostname to be specified in the SSL handshake process.

The server implementation in Zedrem should not require any changes and the Zed app itself should inherit these capabilities from the browser anyway (I haven't verified this yet).

This would be a great feature to have, I imagine it would be a pretty common use case for small organisations.

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

No branches or pull requests

3 participants