Nginx reverse proxy + Nextcloud

Started by GreenMatter, June 22, 2020, 07:58:14 PM

Previous topic - Next topic
So far, I've added trusted_proxies variable (https://docs.nextcloud.com/server/15/admin_manual/configuration_server/reverse_proxy_configuration.html) in nextcloud config but I'm lost when it comes to Nginx settings in OPNsense. All tutorials which I found keep showing text config with options unavailable (?) in Nginx GUI.
After configuring "regular" options available in GUI the only thing I get is "Request Denied". Does anybody have such a recipe for Nginx in OPNsense?
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)

for some options you need to enable the advanced mode on top.

June 22, 2020, 10:40:46 PM #2 Last Edit: June 22, 2020, 11:09:29 PM by GreenMatter
Quote from: fabian on June 22, 2020, 10:28:42 PM
for some options you need to enable the advanced mode on top.
Yes, I'd done that but still I couldn't find all options like headers (not security headers) as described in tutorials. I keep trying but number of possibilities is rather high and that's why I'm seeking some assistance.


EDIT:
I keep getting this error:
*1 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 172.16.4.6, server: next1.xxxx.xx, request: "GET / HTTP/2.0", upstream: "https://172.16.1.2:443/", host: "next1.xxxx.xx"
I don't know how to set TLS properly for nextcloud...
OPNsense on:
Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (4 cores)
8 GB RAM
50 GB HDD
and plenty of vlans ;-)