Can't connect to my Nextcloud server (locally and online) after a reverse proxy [SOLVED]

Nextcloud version : 16.0.3.0
Operating system and version : Unraid 6.7.2
Nginx version : No idea : https://hub.docker.com/r/linuxserver/letsencrypt/

The issue you are facing:

Can’t connect to my nextcloud :
On my domain : nextcloud.taiaut.fr => error 522
On my IP : 192.168.1.32:444 => Internal Server Error

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

I followed this tutorial : https://forums.unraid.net/topic/73278-video-guide-how-to-setup-and-configure-a-reverse-proxy-on-unraid-with-letsencrypt-nginx/

The output of your Nextcloud log in Admin > Logging:

-------------------------------------
GID/UID
-------------------------------------

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing...
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing...
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /config/www/nextcloud/cron.php:160

Stack trace:

}
thrown in /config/www/nextcloud/cron.php on line 160

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'ocyf9w1940ee',
  'passwordsalt' => '1IyNcg2UrPdYPTHJx/UHKMMMVKS1yp',
  'secret' => 'N73N/C0+RGxGRT2VjxnglDhzyWiaWW4Ky+5PNYtZ7J9BD2gO',
  'trusted_domains' => 
  array (
    0 => '192.168.1.32:444',
    1 => 'nextcloud.taiaut.fr',
  ),
  'overwrite.cli.url' => 'https://nextcloud.taiaut.fr',
  'overwritehost' => 'nextcloud.taiaut.fr',
  'overwriteprotocol' => 'https',
  'version' => '16.0.3.0',
  'dbtype' => 'mysql'
  'dbname' => '____',
  'dbhost' => '192.168.1.32:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '____',
  'dbpassword' => '____',
  'installed' => true,
);

The output of your Letsencrypt log in :

2048 bit DH parameters present
SUBDOMAINS entered, processing
Wildcard cert for only the subdomains of taiaut.fr will be requested
E-mail address entered: cyprien.dlp@gmail.com
dns validation via cloudflare plugin is selected
Certificate exists; parameters unchanged; starting nginx
[cont-init.d] 50-config: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:

no field package.preload['resty.core']
no file './resty/core.lua'
no file '/usr/share/luajit-2.1.0-beta3/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core.lua'
no file '/usr/local/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/5.1/resty/core.lua'
no file '/usr/share/lua/5.1/resty/core/init.lua'
no file '/usr/share/lua/common/resty/core.lua'
no file '/usr/share/lua/common/resty/core/init.lua'
no file './resty/core.so'
no file '/usr/local/lib/lua/5.1/resty/core.so'
no file '/usr/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/usr/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so')
[services.d] done.
Server ready

i see you marked this one as being solved… but… would you be so nice an share the solution you found with us here on the forum so that someone having the same problem could get an idea of what to do?

that would be nice. thank you in advance.

Please, I need this solution

I could use the solution also. Been trying for days. Following spaceinvaderone video to the letter.

Gotta love how no one cares huh?