Nextcloud APP - corrupted server configuration

Hello,

I’m having trouble connecting to my Nextcloud server using the Nextcloud app on Android 13. The server is self-hosted, running in a Docker container on a Raspberry Pi 5 (4 GB). Everything works via a Cloudflare agent and tunnel.

The problem is that when I try to connect, the app displays the message: “Server configuration corrupted.” I have no idea what’s causing this, as I don’t see any errors in the Nextcloud logs.

Thanks in advance for your help.

Below are the Nextcloud logs and the config.php file.

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'password' => '*******************',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'instanceid' => 'oc50028c2a50',
  'passwordsalt' => '*******************',
  'secret' => '*******************',
  'trusted_domains' => 
  array (
    0 => '192.168.110.250:7474',
    1 => 'cloud.karpierz.website',
    2 => 'cloud.home.local',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '32.0.2.2',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'http://192.168.110.250:7474',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'usernextcloud',
  'dbpassword' => '*******************',
  'installed' => true,
  'maintenance_window_start' => 1,
  'maintenance' => false,
  'default_phone_region' => 'PL',
  'force_language' => 'pl',
  'default_locale' => 'pl_PL',
  'default_timezone' => 'Europe/Warsaw',
  'auth.webauthn.enabled' => false,
  'lost_password_link' => 'disabled',
  'memories.db.triggers.fcu' => true,
  'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-aarch64-glibc',
  'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-aarch64',
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '*******************',
  'mail_smtphost' => '*******************',
  'mail_smtpport' => '587',
  'mail_smtpauth' => true,
  'mail_smtpname' => '*******************',
  'mail_smtppassword' => '*******************',
  'preview_ffmpeg_path' => '/usr/bin/ffmpeg',
  'preview_max_scale_factor' => 1,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\TXT',
    1 => 'OC\\Preview\\MarkDown',
    2 => 'OC\\Preview\\OpenDocument',
    3 => 'OC\\Preview\\PDF',
    4 => 'OC\\Preview\\MSOffice2003',
    5 => 'OC\\Preview\\MSOfficeDoc',
    6 => 'OC\\Preview\\Image',
    7 => 'OC\\Preview\\Photoshop',
    8 => 'OC\\Preview\\TIFF',
    9 => 'OC\\Preview\\SVG',
    10 => 'OC\\Preview\\Font',
    11 => 'OC\\Preview\\MP3',
    12 => 'OC\\Preview\\Movie',
    13 => 'OC\\Preview\\MKV',
    14 => 'OC\\Preview\\MP4',
    15 => 'OC\\Preview\\AVI',
    16 => 'OC\\Preview\\HEIC',
    17 => 'OC\\Preview\\ODT',
  ),
  'preview_max_x' => 1024,
  'preview_max_y' => 1024,
  'config_preset' => 1,
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'asset-pipeline.enabled' => true,
  'filelocking.ttl' => 3600,
  'loglevel' => 2,
  'session_lifetime' => 86400,
  'remember_login_cookie_lifetime' => 604800,
  'hide_version' => true,
  'simpleSignUpLink.shown' => false,
  'chunk_size' => 10485760,
  'dbdriveroptions' => 
  array (
    2 => 30,
    1002 => 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
  ),
  'backgroundjobs_mode' => 'cron',
  'filesystem_check_changes' => 1,
  'log_rotate_size' => 10485760,
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_type' => 'file',
  'updatechecker' => false,
  'skeletondirectory' => '',
  'query_log_file' => '',
  'max_filesize_animated_gifs_public_sharing' => 10,
  'integrity.check.disabled' => false,
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 90',
);

LOGS NEXTCLOUD

192.168.110.250 - - [03/Dec/2025:13:44:33 +0000] “GET /index.php/apps/files/preview-service-worker.js HTTP/1.1” 200 6338 “https://cloud.karpierz.website/index.php/apps/files/preview-service-worker.js” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:44:42 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:44:53 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

127.0.0.1 - - [03/Dec/2025:13:44:54 +0000] “GET /status.php HTTP/1.1” 200 1064 “-” “curl/8.14.1”

192.168.110.250 - - [03/Dec/2025:13:45:02 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 748 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:45:04 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 775 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:45:15 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

127.0.0.1 - - [03/Dec/2025:13:45:24 +0000] “GET /status.php HTTP/1.1” 200 1064 “-” “curl/8.14.1”

192.168.110.250 - - [03/Dec/2025:13:45:26 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:45:32 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 748 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:45:37 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 775 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:45:48 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

127.0.0.1 - - [03/Dec/2025:13:45:54 +0000] “GET /status.php HTTP/1.1” 200 1064 “-” “curl/8.14.1”

192.168.110.250 - - [03/Dec/2025:13:45:59 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:46:02 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 747 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:46:10 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:46:21 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

127.0.0.1 - - [03/Dec/2025:13:46:24 +0000] “GET /status.php HTTP/1.1” 200 1064 “-” “curl/8.14.1”

192.168.110.250 - - [03/Dec/2025:13:46:32 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 748 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:46:32 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:46:43 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:46:54 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

127.0.0.1 - - [03/Dec/2025:13:46:54 +0000] “GET /status.php HTTP/1.1” 200 1064 “-” “curl/8.14.1”

192.168.110.250 - - [03/Dec/2025:13:47:02 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 748 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:05 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 775 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:16 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

127.0.0.1 - - [03/Dec/2025:13:47:24 +0000] “GET /status.php HTTP/1.1” 200 1064 “-” “curl/8.14.1”

192.168.110.250 - - [03/Dec/2025:13:47:27 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:32 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 304 748 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:38 +0000] “GET /index.php/apps/logreader/api/poll?lastReqId=BvKH2ia2gDqgJ9oaztSj HTTP/1.1” 200 776 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:42 +0000] “GET /index.php/settings/admin/logging HTTP/1.1” 200 8549 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:42 +0000] “GET /index.php/apps/logreader/api/log?offset=0&query= HTTP/1.1” 200 1900 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:42 +0000] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1” 200 909 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:13:47:44 +0000] “GET /index.php/apps/files/preview-service-worker.js HTTP/1.1” 200 6338 “https://cloud.karpierz.website/index.php/apps/files/preview-service-worker.js” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 OPR/124.0.0.0”

192.168.110.250 - - [03/Dec/2025:15:13:33 +0000] “HEAD /.well-known/carddav HTTP/1.1” 301 427 “-” “curl/7.88.1”

I think I have a problem with HSTS headers.

I guess, that this is the reason. Try ‘https://cloud.karpierz.website’ or ‘https://cloud.karpierz.website:7474’, but I wonder, that not port 80 resp. 443 is used.

Unfortunately, that didn’t help. I’ve tried various configurations. In my case, there’s an https problem. See what’s displayed in the console: location: http://cloud.karpierz.website/remote.php/dav.

It should be https:// but it’s http://— that’s the main problem. That’s why I can’t connect from the Nextcloud app on my phone.

curl -I https://cloud.karpierz.website/.well-known/carddav

USER@serwer:~ $ curl -I https://cloud.karpierz.website/.well-known/carddav
HTTP/2 301
date: Fri, 05 Dec 2025 13:46:59 GMT
content-type: text/html; charset=iso-8859-1
location: http://cloud.karpierz.website/remote.php/dav/
referrer-policy: no-referrer
server: cloudflare
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: noindex, nofollow
cf-cache-status: DYNAMIC
strict-transport-security: max-age=15552000
report-to: {“group”:“cf-nel”,“max_age”:604800,“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v4?s=jy%2B1V%2BPZHi9aPKTxjFPRmC\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*”}]}
nel: {“report_to”:“cf-nel”,“success_fraction”:0.0,“max_age”:604800}
cf-ray: 9a93fe2b5fce3f48-WAW
alt-svc: h3=“:443”; ma=86400

My configuration is a bit complex because I use a local DNS server at home on the *.home.local domain and a CloudFlare tunnel.

While I previously had in my config.php file:

'overwriteprotocol' => 'https',
'overwritehost' => 'cloud.karpierz.website',
'overwrite.cli.url' => '``http://cloud.karpierz.website``',

locally I had a redirect from cloud.home.local to cloud.karpierz.website – i.e., the CloudFlare tunnel.

Therefore, I had to modify config.php slightly to eliminate the redirect and ensure that the HSTS headers were loaded correctly. Below is the current configuration. But I still get the “corrupt server configuration” error in the application.

cloudflared/config.yml
tunnel: 937933cc-627e-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
credentials-file: /home/USER/.cloudflared/cert.pem

ingress:

hostname: cloud.karpierz.website
service: http://localhost:7474
originRequest:
noTLSVerify: true
httpHostHeader: cloud.karpierz.website
originServerName: cloud.karpierz.website
headers:
X-Forwarded-Proto:

* “https”
  X-Forwarded-For:
* “${CF-Connecting-IP}”
  X-Real-IP:
* “${CF-Connecting-IP}”

service: http_status:404
additional script for nextcloud

#!/bin/bash

Instalacja ffmpeg (jeśli potrzebne)

if ! command -v ffmpeg &> /dev/null; then
echo “:clapper_board: Installing ffmpeg…”
apt-get update -qq
apt-get install -y -qq ffmpeg
apt-get clean
rm -rf /var/lib/apt/lists/*
echo “:white_check_mark: ffmpeg installed successfully!”
else
echo “:white_check_mark: ffmpeg already installed”
fi

Włącz moduły Apache

echo “:wrench: Enabling Apache modules…”
a2enmod headers setenvif env rewrite 2>/dev/null || true

Dodaj konfigurację HTTPS dla Cloudflare Tunnel

echo “:locked: Configuring HTTPS for Cloudflare Tunnel…”
cat > /etc/apache2/conf-available/cloudflare-https.conf << ‘EOF’

Wykryj HTTPS z X-Forwarded-Proto

SetEnvIf X-Forwarded-Proto “https” HTTPS=on
SetEnvIf X-Forwarded-Proto “https” HTTPS_ENABLED=1

    # Napraw Location header - zamień http:// na https://
    Header edit Location "^http://(.*)$" "https://$1" env=HTTPS_ENABLED
</IfModule>
EOF # Włącz konfigurację a2enconf cloudflare-https 2>/dev/null || true # Test Apache config echo "✅ Apache configured for HTTPS" # Uruchom oryginalny entrypoint Nextcloud exec /entrypoint.sh "$@"
 
<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'password' => '********************',
    'port' => 6379,
  ),
  'upgrade.disable-web' => true,
  'instanceid' => 'oc50028c2a50',
  'passwordsalt' => '********************',
  'secret' => '********************',
  'trusted_domains' => [
    'cloud.karpierz.website',
    'cloud.home.local',
    '192.168.110.250',
  ],
  'trusted_proxies' => [
    '127.0.0.1',
    '::1',

    // Docker (Nextcloud, Cloudflared, NPM)
    '172.17.0.0/16',
    '172.18.0.0/16',

    // Cloudflare
    '103.21.244.0/22',
    '141.101.64.0/18',
    '172.64.0.0/13',
  ],
  'forwarded_for_headers' => [
    'X-Forwarded-For',
    'X-Real-IP',
    'CF-Connecting-IP',
  ],

  /**
   * CLOUDFLARE › forces HTTPS ihost ONLY for tunnel traffic. 
   * NPM › doesn't match this regex, so locally it works its own way.
   */

  'overwriteprotocol'  => 'https',
  'overwritehost'      => 'cloud.karpierz.website',
  'overwrite.cli.url'  => 'http://cloud.karpierz.website',

  // Note: ONLY WORKS for cloudflared (localhost, docker)
  'overwritecondaddr'  => '^(127\.0\.0\.1|172\.17\.|172\.18\.)',

  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '32.0.2.2',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'usernextcloud',
  'dbpassword' => '********************',
  'installed' => true,
  'maintenance_window_start' => 1,
  'maintenance' => false,
  'default_phone_region' => 'PL',
  'force_language' => 'pl',
  'default_locale' => 'pl_PL',
  'default_timezone' => 'Europe/Warsaw',
  'auth.webauthn.enabled' => false,
  'lost_password_link' => 'disabled',
  'memories.db.triggers.fcu' => true,
  'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-aarch64-glibc',
  'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-aarch64',
  'mail_from_address' => 'no-reply',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '********************',
  'mail_smtphost' => '********************',
  'mail_smtpport' => '587',
  'mail_smtpauth' => true,
  'mail_smtpname' => '********************',
  'mail_smtppassword' => '********************',
  'preview_ffmpeg_path' => '/usr/bin/ffmpeg',
  'preview_max_scale_factor' => 1,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\TXT',
    1 => 'OC\\Preview\\MarkDown',
    2 => 'OC\\Preview\\OpenDocument',
    3 => 'OC\\Preview\\PDF',
    4 => 'OC\\Preview\\MSOffice2003',
    5 => 'OC\\Preview\\MSOfficeDoc',
    6 => 'OC\\Preview\\Image',
    7 => 'OC\\Preview\\Photoshop',
    8 => 'OC\\Preview\\TIFF',
    9 => 'OC\\Preview\\SVG',
    10 => 'OC\\Preview\\Font',
    11 => 'OC\\Preview\\MP3',
    12 => 'OC\\Preview\\Movie',
    13 => 'OC\\Preview\\MKV',
    14 => 'OC\\Preview\\MP4',
    15 => 'OC\\Preview\\AVI',
    16 => 'OC\\Preview\\HEIC',
    17 => 'OC\\Preview\\ODT',
  ),
  'preview_max_x' => 1024,
  'preview_max_y' => 1024,
  'config_preset' => 1,
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'asset-pipeline.enabled' => true,
  'filelocking.ttl' => 3600,
  'loglevel' => 2,
  'session_lifetime' => 86400,
  'remember_login_cookie_lifetime' => 604800,
  'hide_version' => true,
  'simpleSignUpLink.shown' => false,
  'chunk_size' => 10485760,
  'dbdriveroptions' => 
  array (
    2 => 30,
    1002 => 'SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
  ),
  'backgroundjobs_mode' => 'cron',
  'filesystem_check_changes' => 1,
  'log_rotate_size' => 10485760,
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_type' => 'file',
  'updatechecker' => false,
  'skeletondirectory' => '',
  'query_log_file' => '',
  'max_filesize_animated_gifs_public_sharing' => 10,
  'integrity.check.disabled' => false,
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 90',
);

I’ll add that when I’m logged into my home Wi-Fi and log in to the server in the Nextcloud app via https://cloud.home.local, there’s no problem.

You still call http:

hsts needs https-access.

I changed it to https:// but that didn’t solve the problem.

‘overwrite.cli.url’ => ‘https://cloud.karpierz.website’,

found a solution to my problem. I forgot that Cloudflare Access blocked access to the admin panels and the status.php file through Applications, which prevented the mobile app from connecting.

1 Like