[Solved]Cannot conect to NCP using my domain or outside my network

Hi, everything was working fine and suddenly I can’t connect from outside my network; also i can’t connect using my domain inside or outside my network (duckdns), I can only access using https://(raspberry-ip):4443 any help would be appreciated. There is my ncp-report:

details>

NextCloudPi diagnostics

NextCloudPi version  v1.20.1
NextCloudPi image    NextCloudPi_11-22-18
distribution         Raspbian GNU/Linux 10 \n \l
automount            no
USB devices          none
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      47G/118G
rootfs usage         47G/118G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    17.0.2.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         yes
uptime               1:02

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "11": "2601:645:8400:70e0:ba27:ebff:fe5a:8183",
            "1": "10.0.0.122",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "2": "depressiva.duckdns.org",
            "4": "depressiva.duckdns.org",
            "12": "depressiva.duckdns.org"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "17.0.2.1",
        "overwrite.cli.url": "https:\/\/depressiva.duckdns.org\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/var\/www\/nextcloud\/data\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "data-fingerprint": "9477309c08eaf649e81e16331e2d3d5d",
        "theme": "",
        "loglevel": "2",
        "log_type": "file",
        "app_install_overwrite": [
            "news"
        ]
    }
}

HTTPd logs

[Sun Jan 26 18:41:48.838094 2020] [authz_host:error] [pid 768:tid 1706308640] [client 10.0.0.228:50882] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:41:49.150979 2020] [authz_host:error] [pid 768:tid 1731511328] [client 10.0.0.228:50882] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Sun Jan 26 18:41:55.419193 2020] [authz_host:error] [pid 768:tid 1706308640] [client 10.0.0.228:50882] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:42:37.603690 2020] [authz_host:error] [pid 768:tid 1748304928] [client 10.0.0.228:50882] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name
[Sun Jan 26 18:42:37.603859 2020] [authz_host:error] [pid 768:tid 1714709536] [client 10.0.0.228:50882] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Sun Jan 26 18:42:37.603690 2020] [authz_host:error] [pid 768:tid 1706308640] [client 10.0.0.228:50882] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:16.045744 2020] [authz_host:error] [pid 768:tid 1739912224] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:19.968957 2020] [authz_host:error] [pid 768:tid 1739912224] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.170746 2020] [authz_host:error] [pid 768:tid 1739912224] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.171222 2020] [authz_host:error] [pid 768:tid 1739912224] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.367065 2020] [authz_host:error] [pid 768:tid 1739912224] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.719573 2020] [authz_host:error] [pid 768:tid 1773483040] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /css/ncp.css failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.719592 2020] [authz_host:error] [pid 768:tid 1890980896] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /js/minified.js failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.720760 2020] [authz_host:error] [pid 768:tid 1899373600] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /js/ncp.js failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.721895 2020] [authz_host:error] [pid 768:tid 1781875744] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:20.722949 2020] [authz_host:error] [pid 768:tid 1731511328] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /img/ncp-logo.svg failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:21.112084 2020] [authz_host:error] [pid 768:tid 1739912224] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:21.123720 2020] [authz_host:error] [pid 768:tid 1890980896] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:49:25.464323 2020] [authz_host:error] [pid 768:tid 1890980896] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jan 26 18:50:06.028324 2020] [authz_host:error] [pid 768:tid 1890980896] [client 10.0.0.228:55070] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name

Database logs

2020-01-26 18:10:31 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-01-26 18:10:31 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=7201316322
2020-01-26 18:10:32 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-01-26 18:10:32 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-01-26 18:10:32 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-01-26 18:10:32 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-01-26 18:10:32 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-01-26 18:10:32 0 [Note] InnoDB: Waiting for purge to start
2020-01-26 18:10:32 0 [Note] InnoDB: 10.3.17 started; log sequence number 7201316331; transaction id 33062906
2020-01-26 18:10:32 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2020-01-26 18:10:32 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-01-26 18:10:32 0 [Note] Recovering after a crash using tc.log
2020-01-26 18:10:32 0 [Note] Starting crash recovery...
2020-01-26 18:10:32 0 [Note] Crash recovery finished.
2020-01-26 18:10:32 0 [Note] Server socket created on IP: '127.0.0.1'.
2020-01-26 18:10:32 0 [Note] Reading of all Master_info entries succeeded
2020-01-26 18:10:32 0 [Note] Added new Master_info '' to hash table
2020-01-26 18:10:32 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.17-MariaDB-0+deb10u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian 10
2020-01-26 18:10:39 0 [Note] InnoDB: Buffer pool(s) load completed at 200126 18:10:39

Nextcloud logs

{"reqId":"t9NANEjpY33JacPSdDSn","level":2,"time":"2020-01-26T07:00:20+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"t9NANEjpY33JacPSdDSn","level":2,"time":"2020-01-26T07:01:06+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"yAvEPJV1hjjUyawrq0CA","level":2,"time":"2020-01-26T07:15:22+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"yAvEPJV1hjjUyawrq0CA","level":2,"time":"2020-01-26T07:16:09+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"maFPj3WwMWz9qsj0UVvW","level":2,"time":"2020-01-26T07:30:19+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"maFPj3WwMWz9qsj0UVvW","level":2,"time":"2020-01-26T07:31:05+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"DZAUplTYN4vFsLVpg93w","level":2,"time":"2020-01-26T07:45:21+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"DZAUplTYN4vFsLVpg93w","level":2,"time":"2020-01-26T07:46:08+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"Xi1HAacNpcJIL2Bu1xwuWAAAAwI","level":3,"time":"2020-01-26T08:00:02+00:00","remoteAddr":"172.58.92.15","user":"--","app":"PHP","method":"GET","url":"\/index.php\/apps\/music\/ampache\/server\/xml.server.php?action=_get_cover&filter=1857&auth=49b3c031b37db2e2fc50a04640288337","message":"Undefined index: filesize at \/var\/www\/nextcloud\/apps\/music\/3rdparty\/getID3\/getid3\/module.tag.apetag.php#37","userAgent":"okhttp\/3.10.0","version":"17.0.2.1"}
{"reqId":"yHKNoYYm1dRMpkzoVDhV","level":2,"time":"2020-01-26T08:00:19+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"yHKNoYYm1dRMpkzoVDhV","level":2,"time":"2020-01-26T08:01:05+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"BIa9VxXDqTxnizkIh8YB","level":2,"time":"2020-01-26T08:15:18+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"BIa9VxXDqTxnizkIh8YB","level":2,"time":"2020-01-26T08:16:06+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"ZJoy1CP1bYRPK9HuPG9K","level":2,"time":"2020-01-26T08:30:22+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"ZJoy1CP1bYRPK9HuPG9K","level":2,"time":"2020-01-26T08:31:09+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"pDSxhCZETtC1LwYoe5um","level":2,"time":"2020-01-26T08:45:21+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"pDSxhCZETtC1LwYoe5um","level":2,"time":"2020-01-26T08:46:08+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/www.metaltotal.com\/rss\/ read error : cURL error 7: Failed to connect to www.metaltotal.com port 80: Connection timed out (see http:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html)","userAgent":"--","version":"17.0.2.1"}
{"reqId":"Wi46aIN8OS5iykhpucoY","level":2,"time":"2020-01-26T09:00:20+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"http:\/\/archninfa.blogspot.com\/feeds\/posts\/default read error : Client error: `GET http:\/\/archninfa.blogspot.com\/feeds\/posts\/default` resulted in a `404 Not Found` response:\n<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\"><html dir=\"ltr\"><head><title>R (truncated...)\n","userAgent":"--","version":"17.0.2.1"}
{"reqId":"3RQtG6jbqNFEHFtLF1kw","level":3,"time":"2020-01-26T15:00:10+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"RedisException","Message":"Redis server went away","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/lib\/private\/Memcache\/Redis.php","line":54,"function":"get","class":"Redis","type":"->","args":["512f663eb864d4e50137007d5bb6b6ea\/core.appinfo\/var\/www\/nextcloud\/apps\/files\/appinfo\/info.xml1576957138"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/App\/InfoParser.php","line":57,"function":"get","class":"OC\\Memcache\\Redis","type":"->","args":["\/var\/www\/nextcloud\/apps\/files\/appinfo\/info.xml1576957138"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/App\/AppManager.php","line":466,"function":"parse","class":"OC\\App\\InfoParser","type":"->","args":["\/var\/www\/nextcloud\/apps\/files\/appinfo\/info.xml"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":555,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->","args":["files",false,null]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":66,"function":"getAppInfo","class":"OC_App","type":"::","args":["files"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":240,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::","args":["files"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":120,"function":"registerAutoloading","class":"OC_App","type":"::","args":["files","\/var\/www\/nextcloud\/apps\/files"]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":640,"function":"loadApps","class":"OC_App","type":"::","args":[["session"]]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":1078,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/cron.php","line":41,"args":["\/var\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/www\/nextcloud\/lib\/private\/Memcache\/Redis.php","Line":54,"CustomMessage":"--"},"userAgent":"--","version":"17.0.2.1"}
{"reqId":"Xi3dkhdBhoUM5uSqD59HYAAADwg","level":2,"time":"2020-01-26T18:42:31+00:00","remoteAddr":"10.0.0.228","user":"--","app":"no app in context","method":"POST","url":"\/index.php\/login","message":"Login failed: ncp (Remote IP: 10.0.0.228)","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}

I think the problem is solved, I believe my ISP was blocking ports 80 and 443, with a new feature call advance security, i just disable that feature and the things are now working. thank you