OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: matt_novacorpdev on April 27, 2025, 09:26:31 PM

Title: Reverse Proxy Issue
Post by: matt_novacorpdev on April 27, 2025, 09:26:31 PM
I have the following configurations to point my domain to my service, but I can't seem to get it to work. Everytime i try to go into "music.[my-domain].com" it won't resolve. Does it look like im missing anything? The service is hosted at 192.168.1.139:30043

Unbound DNS override:
Host: music
Domain: [my-domain].com
Type: IPv4 Address
Value: 192.168.1.1

NginX
Upstream server:
Description: Music server
Server: 192.168.1.139
Port: 30043
Priority: 1

Upstream:
Description: Music server
Servers: Music server
TLS enabled: true
TLS supported versions: TLSv1.2, TLSv1.3

HTTP Location:
URL Pattern: /
Upstream Servers: Music server
Force HTTPS: false
Match type: None
URL Path Prefix: none

HTTP Server:
TLS Certificate: music.[my-domain].com (renewed through ACME client)
HTTP Listen Address: 80, [::]:80
HTTPS Listen Address: 443, [::]:443
Server name: music.[my-domain].com
Locations: Music server


Title: Re: Reverse Proxy Issue
Post by: RamSense on April 30, 2025, 07:28:23 AM
You use upstream - TLS enabled: true
does your service use tls?

What happens when you uncheck that.

if that works and you want ssl/https, let nginx do that.
Set https location, force https on true
and https server, HTTPS Only on true
Title: Re: Reverse Proxy Issue
Post by: meyergru on April 30, 2025, 08:49:50 AM
If the Unbound override only says [my-domain].com, then music.[my-domain].com will obviously not be resolved. You can use *.[my-domain].com as an alias in Unbound.