Upcoming Maintenance Alert:

The UBNT Community will be upgraded at 5pm MDT on April 25th. During this time the community forums will be set to read-only status.

Learn more

×
Reply
Highlighted
New Member
Posts: 1
Registered: ‎01-12-2017
Accepted Solution

Reverse Proxy after the installation

Hi,

 

I have already installed UNMS but without the reverse proxy option

 

Is there a way to configure UNMS to work behind a reverse proxy.

 

I have 2 concerns :

 

1- The web interface has to be reachable behind the RP

2- The equipment must be able to reach the UNMS "server" behind the reverse proxy

 

Thanks for your help

 

 


Accepted Solutions
Ubiquiti Employee
Posts: 136
Registered: ‎01-26-2017
Kudos: 34
Solutions: 16

Re: Reverse Proxy after the installation

 

Setting up UNMS to run behind a reverse proxy is described in our installation manual here

https://github.com/Ubiquiti-App/UNMS/wiki/Installation-&-Update#-running-unms-behind-a-reverse-proxy...

 

You can just run the UNMS installation again with the correct parameters. It will reinstall UNMS with the new configuration, but leave your data intact.

 

 

 

In order to reach the UNMS web interface from the outside, you proxy must forward packets to the UNMS HTTPS port. In order for devices to be able to connect, the proxy must correctly handle WebSocket connections. The WebSocket and HTTPS port is the same by default, but can be separated using the --ws-port and --public-ws-port installation arguments (this allows you to expose one, but not the other).

 

An Nginx configuration example was added recently

https://github.com/Ubiquiti-App/UNMS/wiki/Nginx-reverse-proxy-example

 

Hope this helps, let us know if you run into any issues.

 

View solution in original post


All Replies
Ubiquiti Employee
Posts: 136
Registered: ‎01-26-2017
Kudos: 34
Solutions: 16

Re: Reverse Proxy after the installation

 

Setting up UNMS to run behind a reverse proxy is described in our installation manual here

https://github.com/Ubiquiti-App/UNMS/wiki/Installation-&-Update#-running-unms-behind-a-reverse-proxy...

 

You can just run the UNMS installation again with the correct parameters. It will reinstall UNMS with the new configuration, but leave your data intact.

 

 

 

In order to reach the UNMS web interface from the outside, you proxy must forward packets to the UNMS HTTPS port. In order for devices to be able to connect, the proxy must correctly handle WebSocket connections. The WebSocket and HTTPS port is the same by default, but can be separated using the --ws-port and --public-ws-port installation arguments (this allows you to expose one, but not the other).

 

An Nginx configuration example was added recently

https://github.com/Ubiquiti-App/UNMS/wiki/Nginx-reverse-proxy-example

 

Hope this helps, let us know if you run into any issues.

 

Reply