Nextcloud version: 29.0.6
Operating system and version: Ubuntu 22.04.3 LTS
Apache or nginx version: 2.4.52
PHP version: 8.1.2
I have recently moved my server from using NGROK to ZROK for remote connection. When I was using NGROK to connect, I could connect from my browsers, clients, and all mobile applications with no issues and with no further configurations other than in the config.php file for overwrite-url and such.
After moving to ZROK and modifying all internal server parameters to ensure it worked, I can log in through any browser both on PC and any mobile device.
When trying to connect the iOS app to the server, the server is detected and the browser opens and advances: Login >> Grant Access >> “Account connected: you can safely close this window”. However, upon returning to the app, it just displays “Please complete the log in process in your browser” with a greyed out Cancel button and an available Retry button, that just returns to the Login screen in the browser.
Steps to replicate it:
- Complete installation of Nextcloud, with no errors pending in Admin Settings
- Install zrok and set it up as a service to share reserved connection on boot
- Attempt to connect iOS app to server
The output of my config.php file in /var/www/sclouds/
:
<?php
$CONFIG = array (
'instanceid' => 'secret',
'passwordsalt' => 'secret',
'secret' => 'secret',
'trusted_domains' =>
array (
0 => 'sclouds.local',
1 => 'site.share.zrok.io',
),
'trusted_proxies' =>
array (
0 => '127.0.0.1',
),
'default_language' => 'es',
'datadirectory' => '/var/www/sclouds/data',
'dbtype' => 'mysql',
'version' => '29.0.6.1',
'overwrite.cli.url' => 'https://site.share.zrok.io',
'overwritehost' => 'site.share.zrok.io',
'overwriteprotocol' => 'https',
'forcessl' => true,
'htaccess.RewriteBase' => '/',
'dbname' => 'db_name',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'user',
'dbpassword' => 'secret',
'installed' => true,
'default_phone_region' => 'MX',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'maintenance' => false,
'maintenance_window_start' => 1,
'filelocking.enabled' => true,
'memories.exiftool_no_local' => true,
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\HEIC',
4 => 'OC\\Preview\\TIFF',
5 => 'OC\\Preview\\Movie',
6 => 'OC\\Preview\\MP4',
7 => 'OC\\Preview\\MKV',
8 => 'OC\\Preview\\AVI',
9 => 'OC\\Preview\\TXT',
10 => 'OC\\Preview\\MarkDown',
),
'mail_from_address' => 'sclouds',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'disroot.org',
'mail_smtphost' => 'disroot.org',
'mail_smtpport' => '587',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtpname' => 'sclouds',
'mail_smtppassword' => 'secret',
'theme' => '',
'loglevel' => 1,
'memories.vod.path' => '/var/www/sclouds/apps/memories/bin-ext/go-vod-amd64',
'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
'memories.vod.ffprobe' => '/usr/bin/ffprobe',
'app_install_overwrite' =>
array (
0 => 'ransomware_protection',
1 => 'cms_pico',
2 => 'occweb',
),
'preview_max_filesize_image' => 50,
'preview_max_x' => 2048,
'preview_max_y' => 2048,
'updater.release.channel' => 'stable',
'memories.db.triggers.fcu' => true,
);