Hi there, really enjoying nextcloud so far. I’m having some trouble getting it working behind my HAproxy. My setup currently is HAproxy running on an OPNsense appliance, pointing at the nextcloud server running on LAN. I’m trying to have HAproxy do the SSL offload.
If I disable my proxy and forward port 80 directly to the nextcloud box, I’m able to access it via http. When the proxy is enabled, it redirects me to https (as it should) but browsers return an SSL error. in chrome, it’s “ERR_SSL_PROTOCOL_ERROR” and firefox is “SSL_ERROR_RX_RECORD_TOO_LONG”. The logs on my firewall indicate that the traffic is being allowed to pass to the nextcloud box, as far as I can tell.
I haven’t set up any ssl or certificate on the nextcloud box itself. Can anyone tell me if I’m doing anything obviously wrong?
Here is my config.php:
<?php $CONFIG = array ( 'instanceid' => 'id', 'passwordsalt' => 'salt', 'secret' => 'secret', 'trusted_domains' => array ( 0 => 'mydomain', 1 => '192.168.42.22', ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'overwritehost' => '192.168.42.1' 'version' => '188.8.131.52', 'overwriteprotocol' => 'https' 'overwrite.cli.url' => 'https://mydomain', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => 'dbpassword, 'installed' => true, 'memcache.local' => '\OC\Memcache\APCu', 'default_phone_region' => 'US', );