nginx reverse Proxy help - example needed

Started by vikozo, June 20, 2019, 08:13:35 AM

Previous topic - Next topic
Hello

i have my Own DNS/WEB/Mail Server behind opnSense (DMZ).
All the Service are on a singel-VM. Testpage www.kozo.ch

I solved this with NAT port forwarding an some rules in the Firewall too, and it works.

Now on another VM i installed Gitlab with a Privat IP of the DMZ Range - from the LAN it works fine so far.

the wish is to make it open reachable like
gitlab.kozo.ch

my idea is to use in opnSense the nginx Reverse Proxy to use. But can't find out how the outside-world should get the connection.
In  Services: Nginx: Configuration Upstream Server i did just add the privat-IP of the VM and port 80

but i can't find out how to go further, any help please

- - - - -- - - - -
Versions
OPNsense 19.1.9-amd64
FreeBSD 11.2-RELEASE-p10-HBSD
LibreSSL 2.8.3
apu2c4 / wle200nx / 240 Disk --> Firewall | FW-03
---
OPNsense 22.1.6-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1n 15 Mar 2022

create an upstream, then add the upstream to a location, and then add the location to a HTTP server. Then reload the server and it should be up and running.

LOL that sound easy! will try it this way  :-\
apu2c4 / wle200nx / 240 Disk --> Firewall | FW-03
---
OPNsense 22.1.6-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1n 15 Mar 2022