OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: GreenMatter on June 22, 2020, 07:58:14 PM

Title: Nginx reverse proxy + Nextcloud
Post by: GreenMatter on June 22, 2020, 07:58:14 PM
So far, I've added trusted_proxies variable (https://docs.nextcloud.com/server/15/admin_manual/configuration_server/reverse_proxy_configuration.html (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?
Title: Re: Nginx reverse proxy + Nextcloud
Post by: fabian on June 22, 2020, 10:28:42 PM
for some options you need to enable the advanced mode on top.
Title: Re: Nginx reverse proxy + Nextcloud
Post by: GreenMatter on June 22, 2020, 10:40:46 PM
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...