Skip to content
This repository was archived by the owner on Jan 9, 2019. It is now read-only.
This repository was archived by the owner on Jan 9, 2019. It is now read-only.

Reverse proxying on a single port #51

@JamesCarpenter

Description

@JamesCarpenter

Hi there,

First off - great work on Ulterius, it looks fantastic so far.

Secondly, I wonder if you can help? I'm trying to reverse proxy Ulterius on a single port so that I can have all traffic run over 80 for ease of access from restricted networks (eventually I'll use 443 and HTTPS/WSS but for now I'm using 80 to simplify the PoC).

I can see that this should be possible (using the API endpoints /api /webcam etc) and I have the web portion and api running successfully just by entering port 80 at the connection dialogue, but I can't find a way to point the client to a specific port for webcam, screen sharing, etc. I saw in settings that you can choose a port for these, but the setting is server-side which is obviously not what I'm trying to achieve.

Is there a way I can get the client to point to those endpoints on a specific port (e.g. point all to port 80) and have them forward to the correct ports on the server using the reverse proxy?

Below is a copy of my vhost setup to clarify what I mean:

<VirtualHost *:80>

    ServerAdmin <redacted>
    DocumentRoot /var/www/html
    ServerName <redacted>
  ProxyRequests Off
  ProxyVia Off
    <Proxy *>
     Order deny,allow
     Allow from all
    </Proxy>

ProxyPass /api ws://10.0.0.5:22007/
ProxyPassReverse /api ws://10.0.0.5:22007/

ProxyPass /webcam ws://10.0.0.5:22010/
ProxyPassReverse /webcam ws://10.0.0.5:22010/

ProxyPass /terminal ws://10.0.0.5:22008/
ProxyPassReverse /terminal ws://10.0.0.5:22008/

ProxyPass /screenshare ws://10.0.0.5:22009/
ProxyPassReverse /screenshare ws://10.0.0.5:22009/

ProxyPass / http://10.0.0.5:22006/
ProxyPassReverse / http://10.0.0.5:22006/

</VirtualHost>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions