I’m using the latest dockerized version (10.13) and have found various places (e.g. Email Notification - http ://localhost - #2 by lrzuniga – but I’m not allowed to include links) telling me that overwrite.cli.url
is the place to set the URL prefix when emails contain the wrong host/port/scheme.
I’ve changed it in config.php and restarted the server, but it never has any effect.
My setup is the dockerized server sitting behind a non-dockerized Nginx to provide an HTTPS reverse proxy (which also proxies other things on the same TLD). The OwnCoud path prefix is set to be /owncloud and this works fine.
What doesn’t work is when I trigger an invitation email to be resent (for example), the link is always to the underlying host’s IP address – interestingly not the IP address of the container itself. The only place I can find that this IP address is mentioned is as a trusted domain.
So I assume that means it’s most likely coming from the OwnCloud server’s view of where requests are made: the reverse proxy directs OwnCloud traffic to http ://10.255.30.12:8080/owncloud (I had to include an extra space as it thinks I’m trying to insert a link) and that’s what’s always in the emails, regardless of the value of override.cli.url
.
Steps to reproduce
- Start a dockerized instance of OwnCloud behind a non-dockerized Nginx to provide HTTPS.
- Set the value of
override.cli.url
to Nginx’s TLD. - Restart the server to be safe.
- Trigger an invitation email.
Expected behaviour
The email should contain the scheme, host (and optional port) configured in override.cli.url
.
Actual behaviour
The email contains the underlying machine’s local (in my case internal) IP address and port 8080, which is where Nginx proxies to.
Server configuration
Dockerized using the docker-compose.yml file defaults; it’s “ownCloud 10.13.1 (stable)”.
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.
Page displays only: “No errors have been found.”
The content of config/config.php:
{
"basic": {
"license key": "***REMOVED SENSITIVE VALUE***",
"date": "Fri, 15 Sep 2023 13:42:40 +0000",
"ownCloud version": "10.13.1.3",
"ownCloud version string": "10.13.1",
"ownCloud edition": "Community",
"server OS": "Linux",
"server OS version": "Linux 0a808bdcf4ff 5.15.0-83-generic #92-Ubuntu SMP Mon Aug 14 09:30:42 UTC 2023 x86_64",
"server SAPI": "apache2handler",
"webserver version": "Apache",
"hostname": "10.255.30.12:8080",
"logged-in user": "admin"
},
"stats": {
"users": {
"Database": {
"total_count": 3,
"guest_count": 0,
"seen": 1,
"logged in (30 days)": 1
}
},
"groups": {
"OC\\Group\\Database": 2
}
},
"config": {
"apps_paths": [
{
"path": "\/var\/www\/owncloud\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/owncloud\/custom",
"url": "\/custom",
"writable": true
}
],
"trusted_domains": [
"10.255.30.12",
"localhost",
"***REMOVED TLD***"
],
"datadirectory": "\/mnt\/data\/files",
"dbtype": "mysql",
"dbhost": "mariadb:3306",
"dbname": "owncloud",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"log_type": "owncloud",
"supportedDatabases": [
"sqlite",
"mysql",
"pgsql"
],
"upgrade.disable-web": true,
"default_language": "en",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": 25,
"overwrite.cli.url": "http:\/\/**REMOVED TLD***\/owncloud", ***BUT THIS SHOULD SAY https NOT http AS THAT IS WHAT'S IN config.php***
"htaccess.RewriteBase": "\/owncloud",
"logfile": "\/mnt\/data\/files\/owncloud.log",
"memcache.local": "\\OC\\Memcache\\APCu",
"mysql.utf8mb4": true,
"filelocking.enabled": true,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "redis",
"port": "6379"
},
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"version": "10.13.1.3",
"dbconnectionstring": "",
"allow_user_to_change_mail_address": "",
"logtimezone": "UTC",
"installed": true,
"instanceid": "ocj6vka7hmhy"
},
"integritychecker": {
"passing": true,
"enabled": true,
"result": []
},
"core": {
"backgroundjobs_mode": "cron",
"first_install_version": "10.13.1.3",
"installedat": "1694778940.1797",
"lastcron": "1694785321",
"lastupdateResult": "[]",
"lastupdatedat": "1694784386",
"public_files": "files_sharing\/public.php",
"public_webdav": "dav\/appinfo\/v1\/publicwebdav.php"
},
"apps": [
***REMOVED AS POST SIZE LIMIT EXCEEDED***
],
"migrations": [
{
"app": "activity",
"version": "20161122085340"
},
{
"app": "activity",
"version": "20161122092159"
},
{
"app": "activity",
"version": "20170131134507"
},
{
"app": "activity",
"version": "20170724182159"
},
{
"app": "activity",
"version": "20181019151118"
},
{
"app": "activity",
"version": "20181022150134"
},
{
"app": "core",
"version": "20170101010100"
},
{
"app": "core",
"version": "20170101215145"
},
{
"app": "core",
"version": "20170111103310"
},
{
"app": "core",
"version": "20170213215145"
},
{
"app": "core",
"version": "20170214112458"
},
{
"app": "core",
"version": "20170221114437"
},
{
"app": "core",
"version": "20170221121536"
},
{
"app": "core",
"version": "20170315173825"
},
{
"app": "core",
"version": "20170320173955"
},
{
"app": "core",
"version": "20170418154659"
},
{
"app": "core",
"version": "20170516100103"
},
{
"app": "core",
"version": "20170526104128"
},
{
"app": "core",
"version": "20170605143658"
},
{
"app": "core",
"version": "20170711191432"
},
{
"app": "core",
"version": "20170804201253"
},
{
"app": "core",
"version": "20170928120000"
},
{
"app": "core",
"version": "20171026130750"
},
{
"app": "core",
"version": "20180123131835"
},
{
"app": "core",
"version": "20180302155233"
},
{
"app": "core",
"version": "20180319102121"
},
{
"app": "core",
"version": "20180607072706"
},
{
"app": "core",
"version": "20181017105216"
},
{
"app": "core",
"version": "20181017120818"
},
{
"app": "core",
"version": "20181113071753"
},
{
"app": "core",
"version": "20181220085457"
},
{
"app": "core",
"version": "20190125162909"
},
{
"app": "core",
"version": "20200610110817"
},
{
"app": "core",
"version": "20210928123126"
},
{
"app": "core",
"version": "20230105001100"
},
{
"app": "core",
"version": "20230120101715"
},
{
"app": "core",
"version": "20230210073645"
},
{
"app": "core",
"version": "20230210103154"
},
{
"app": "dav",
"version": "20170116150538"
},
{
"app": "dav",
"version": "20170116170538"
},
{
"app": "dav",
"version": "20170202213905"
},
{
"app": "dav",
"version": "20170202220512"
},
{
"app": "dav",
"version": "20170427182800"
},
{
"app": "dav",
"version": "20170519091921"
},
{
"app": "dav",
"version": "20170526100342"
},
{
"app": "dav",
"version": "20170711193427"
},
{
"app": "dav",
"version": "20170927201245"
},
{
"app": "dav",
"version": "20180622095921"
},
{
"app": "dav",
"version": "20181115210344"
},
{
"app": "dav",
"version": "20190823065724"
},
{
"app": "dav",
"version": "20200114181454"
},
{
"app": "dav",
"version": "20200427142541"
},
{
"app": "dav",
"version": "20210714123001"
},
{
"app": "federatedfilesharing",
"version": "20170804201125"
},
{
"app": "federatedfilesharing",
"version": "20170804201253"
},
{
"app": "federatedfilesharing",
"version": "20190410160725"
},
{
"app": "files_external",
"version": "20170814051424"
},
{
"app": "files_external",
"version": "20210511082903"
},
{
"app": "files_external",
"version": "20220329110116"
},
{
"app": "files_sharing",
"version": "20170804201125"
},
{
"app": "files_sharing",
"version": "20170804201253"
},
{
"app": "files_sharing",
"version": "20170830112305"
},
{
"app": "files_sharing",
"version": "20171115154900"
},
{
"app": "files_sharing",
"version": "20171215103657"
},
{
"app": "files_sharing",
"version": "20190426123324"
},
{
"app": "files_sharing",
"version": "20200504211654"
},
{
"app": "files_sharing",
"version": "20200823121322"
},
{
"app": "files_trashbin",
"version": "20170804201125"
},
{
"app": "files_trashbin",
"version": "20170804201253"
},
{
"app": "notifications",
"version": "20170801085340"
},
{
"app": "notifications",
"version": "20170801152524"
},
{
"app": "notifications",
"version": "20180119080933"
},
{
"app": "notifications",
"version": "20180604132522"
}
],
"phpinfo": []
}
List of activated apps:
Can’t do this; sudo
is not installed, it seems.
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
Are you using external storage, if yes which one: local/smb/sftp/…
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
No
Logs
Web server error log
No logs, apparently.
ownCloud log (data/owncloud.log)
Does not exist.