NextCloud page not displaying correctly

Hi

I have sat up my nextcloud behind two routers and used DDNS as a domain to access it remotely. it was working just fine when it was connected to my ISP router directly, but after i connected it to my home router which is behind the ISP router the page does not load correctly. The login page itself loads fine but after logining in it does not load correctly. this only happens when i try to access the page from my ddns domain name. however, when i login locally it is just fine.

i have already configured both router to port forward 443 to the local IP of nextcloud. so the ISP forwards port 443 to my home router and then my home router forward it to the nextcloud IP.

any advice to solve this issue.

it seems that js scripts are not loading properly as shown in the image

That could be something to do with the browser. Have you tried connecting with a clean browser (clear cache and no extensions/blockers)?

i have tried both chrome and firefox with clean cache both had the same issue. at first i though it was routing issue but after reading the logs it turned out a nextcloud config file issue.
i found a solution following @osiset steps in this topic :

  • disables theming app.

  • changed the value of file locking in config to false

  • commented out the two lines of memcache in config file.

  • i did not have to reboot the server.

I am still seeing the issue of page not loading properly with version 25.0.2:

I tried disabling the theming app, but it does not allow theming to disabled:
pi@raspberrypi:/var/www/nextcloud $ sudo -u www-data php occ app:disable theming
theming can’t be disabled.

I am not using redis or any cache server:
Below is my config file:

<?php $CONFIG = array ( 'instanceid' => '############', 'passwordsalt' => '#######################', 'secret' => '###################################', 'trusted_domains' => array ( 0 => '###.###.###.###', ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '25.0.2.3', 'overwrite.cli.url' => 'https://###.###.###.###/nextcloud', 'dbname' => '###########', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => '##############', 'dbpassword' => '#####################', 'installed' => true, 'loglevel' => 0, 'updater.secret' => '#####################################', 'maintenance' => false, 'theme' => '', ); PHP version: PHP8.0 Any ideas?

I’m having the same issue. When I try to disable theming I get theming can't be disabled. I’m using Nginx Proxy Manager with a fresh Nextcloud install. I can’t even scroll on the apps page.

EDIT: When I access nextcloud locally (192.168.0.10:port) the css seems to load normally. Do I need to change something to get Nginx Proxy Manager to work correctly with Nextcloud?