Ubuntu server on a 386 intel machine with local address http:192.168.1.6
A duckdns name https://xxx-nextcloud.duckdns.org that points to my home LAN
At home router forwards port 80 and 443 to a machine hosting Caddy proxy server
Caddy forwards https ://xxx-nextcloud.duckdns.org to http://192.168.1.6
I have the above settings for other services/machines and works fine.
So far I installed nextcloud 18 server and I can access it http://192.168.1.6
I need some help in making work https with nextcloud, so my server is accessible from outside.
But I receive error that I have to change my trusted domains in config.php
I finally managed to find the file (that was diffivult)
/var/snap/nextcloud/current/nextcloud/config$
But how do I modify the file???
<?php
$snap_name = getenv('SNAP_NAME');
$CONFIG = array(
/**
* Use the ``apps_paths`` parameter to set the location of the Apps directory,
* which should be scanned for available apps, and where user-specific apps
* should be installed from the Apps store. The ``path`` defines the absolute
* file system path to the app folder. The key ``url`` defines the HTTP web path
* to that folder, starting from the Nextcloud web root. The key ``writable``
* indicates if a web server can write files to that folder.
*/
'apps_paths' => array(
/**
* These are the default apps shipped with Nextcloud. They are read-only.
*/
array(
'path'=> '/snap/'.$snap_name.'/current/htdocs/apps',
'url' => '/apps',
'writable' => false,
),
/**
* This directory is writable, meant for apps installed by the user.
*/
array(
'path'=> '/var/snap/'.$snap_name.'/current/nextcloud/extra-apps',
'url' => '/extra-apps',
'writable' => true,
),
),
/**
* Database types that are supported for installation.
*
* Available:
* - sqlite (SQLite3 - Not in Enterprise Edition)
* - mysql (MySQL)
* - pgsql (PostgreSQL)
* - oci (Oracle - Enterprise Edition Only)
*/
'supportedDatabases' => array(
'mysql',
),
'memcache.locking' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_SOCKET'),
'port' => 0,
),
);
@ubuntu-bbb:/var/snap/nextcloud/current/nextcloud/config$ sudo snap run nextcloud.occ config:system:set trusted_domains 1 --value=xxx.duckdns.org
Nextcloud is not installed - only a limited number of commands are available
There are no commands defined in the “config:system” namespace.
did you complete the nextcloud installation?
your config.php looks rather empty.
in fact i don’t the snap installation way of live. normally you have to setup some parameters (data path, database credentials) before you can use nextcloud.