-
Notifications
You must be signed in to change notification settings - Fork 75
Reverse proxying on a single port #51
Description
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>