Any suggestions on reverse proxy

Status
Not open for further replies.

felthamn

Dabbler
Joined
Jan 25, 2018
Messages
40
Good evening folks. I'm looking for a bit of advice on on a problem that's been bugging me for a while. I have a nextcloud server (running on apache as a VM with SSL running via lets-encrypt) and OnlyOffice document server running on a separate VM with a self-signed certificate and after a bit of tweaking I managed to get them to work together. Both work great on the LAN however I would like to get both accessible externally.

I was thinking about setting up a reverse proxy so that I can get https to and from the proxy while the proxy serves pages from both http servers passing through as https. Does this make sense? Does anyone have any suggestions how I might go about this? or is it even possible?

I know that there are tons of solutions on the web about this however I trust the suggestions and views of the FreeNAS community.
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
If you're comfortable with Apache, it will perform this task quite well. If you want something with a smaller footprint, consider Nginx or HAProxy.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
I’m running Nginx in a VPS (the only traffic I allow through my firewall) and it’s working fine. Smallest plan is usually enough and of course the VPS is heavily locked down and have its own firewall.
But if the proxy is outside your firewall make sure you have another one on LAN to handle your internal traffic or you will send a lot of traffic through your firewall for no reason.
 

felthamn

Dabbler
Joined
Jan 25, 2018
Messages
40
Thanks for the feedback. So it's 'doable'. I'm going to have a play about this weekend. Can I just ask when I'm setting this up should it be a separate VM? and would it allow me to access and iocage jail as well as a vm? sorry for the daft sounding questions but I just want to get things straight in my head.

Like I said, I will have a play and will let you folks know how I get on. Thank you for you time ans have a good weekend.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Just set it up in a jail. Less overhead and simple. There's a couple different tutorials posted in the forums on how to do it using nginx.
 
Status
Not open for further replies.
Top