Error 502 when using DNS + HTTP Proxy - NextCloud


#1

Hi Guys,

I’ve installed NextCloud from UNRAID and it’s working both internal/external. We have an SSL (domain.com, *.domain.com) through CF and we would like to use it with NC. There’s an issue, if I enabled DNS + HTTP proxy, it’s working internally but not from the outside - I get an error 502 (bad gateway) and if DNS is only enabled, I’m able to access NC from the outside but w/o a valid cert. Any suggestion is appreciated. Thanks

NC config.php

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'ocr0kaov7upo',
  'passwordsalt' => '0as0a0s0as00sd',
  'secret' => 'Yhfhfewtwfrsfsrwrw222',
  'trusted_domains' => 
  array (
    0 => '1.1.1.1',
    1 => 'nextcloud.domain.com',
  ),
  'overwrite.cli.url' => 'https://nextcloud.domain.com',
  'overwritehost' => 'nextcloud.domain.com',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '13.0.5.2',
  'dbname' => 'nextcloud',
  'dbhost' => '2.2.2.2:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'user',
  'dbpassword' => 'password',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'domain.com',
  'mail_smtphost' => '3.3.3.3',
  'mail_smtpport' => '25',
  'updater.release.channel' => 'production',
);

~JDS


#2

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.