Nextcloud config.php on SCALE 22.02

Minic119

Cadet
Joined
Apr 1, 2022
Messages
3
Hi,
I just installed nextcloud in my TrueNAS-SCALE-22.02.0. how can I edit the config.php file in nextcloud or where is the config.php located so I can edit it. Thank you in advance. I'm trying to edit the trusted domains to be able to access my nextcloud outside of my home network.
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
dont know where it's located but you can add trusted domains via env variable

Variable NEXTCLOUD_TRUSTED_DOMAINS
Value : "yourtrustydomain.com"
 

Minic119

Cadet
Joined
Apr 1, 2022
Messages
3
@LarsR I deleted my nextcloud plugin because i hadn't had it set up yet and went back to do the install and added the env variable and now it gets hung up on deploying 2/3. I have stopped it and deleted and reinstalled without the env variable and it installs and deploys just fine. If there is something else i need to do before adding that in I have not figured out what it is i'm doing wrong
 

Minic119

Cadet
Joined
Apr 1, 2022
Messages
3
I have copied and pasted my application events log when i try to install nextcloud with the variable added.

Application Events
2022-04-04 14:19:35
Startup probe failed: HTTP probe failed with statuscode: 400
2022-04-04 15:10:03
Deleted job nextcloud-cronjob-27485040
2022-04-04 15:05:02
(combined from similar events): Saw completed job: nextcloud-cronjob-27485050, status: Complete
2022-04-04 15:10:03
Job completed
2022-04-04 15:10:01
Started container nextcloud
2022-04-04 15:10:01
Created container nextcloud
2022-04-04 15:10:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 15:10:01
Add eth0 [172.16.32.59/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485050-n7qvm to ix-truenas
2022-04-04 15:10:00
Created pod: nextcloud-cronjob-27485050-n7qvm
2022-04-04 15:05:00
(combined from similar events): Created job nextcloud-cronjob-27485050
2022-04-04 15:05:02
Deleted job nextcloud-cronjob-27485035
2022-04-04 15:05:02
Job completed
2022-04-04 15:05:01
Started container nextcloud
2022-04-04 15:05:01
Created container nextcloud
2022-04-04 15:05:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 15:05:01
Add eth0 [172.16.32.58/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485045-k6zhp to ix-truenas
2022-04-04 15:05:00
Created pod: nextcloud-cronjob-27485045-k6zhp
2022-04-04 15:00:03
Deleted job nextcloud-cronjob-27485030
2022-04-04 15:00:03
Saw completed job: nextcloud-cronjob-27485040, status: Complete
2022-04-04 15:00:03
Job completed
2022-04-04 15:00:01
Started container nextcloud
2022-04-04 15:00:01
Created container nextcloud
2022-04-04 15:00:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 15:00:01
Add eth0 [172.16.32.57/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485040-thvqw to ix-truenas
2022-04-04 15:00:00
Created pod: nextcloud-cronjob-27485040-thvqw
2022-04-04 15:00:00
Created job nextcloud-cronjob-27485040
2022-04-04 14:55:02
Deleted job nextcloud-cronjob-27485025
2022-04-04 14:55:02
Saw completed job: nextcloud-cronjob-27485035, status: Complete
2022-04-04 14:55:02
Job completed
2022-04-04 14:55:01
Started container nextcloud
2022-04-04 14:55:01
Created container nextcloud
2022-04-04 14:55:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:55:01
Add eth0 [172.16.32.56/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485035-thncf to ix-truenas
2022-04-04 14:55:00
Created pod: nextcloud-cronjob-27485035-thncf
2022-04-04 14:55:00
Created job nextcloud-cronjob-27485035
2022-04-04 14:50:03
Deleted job nextcloud-cronjob-27485020
2022-04-04 14:50:03
Saw completed job: nextcloud-cronjob-27485030, status: Complete
2022-04-04 14:50:03
Job completed
2022-04-04 14:50:01
Started container nextcloud
2022-04-04 14:50:01
Created container nextcloud
2022-04-04 14:50:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:50:01
Add eth0 [172.16.32.55/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485030-pwlqg to ix-truenas
2022-04-04 14:50:00
Created pod: nextcloud-cronjob-27485030-pwlqg
2022-04-04 14:50:00
Created job nextcloud-cronjob-27485030
2022-04-04 14:45:02
Deleted job nextcloud-cronjob-27485015
2022-04-04 14:45:02
Saw completed job: nextcloud-cronjob-27485025, status: Complete
2022-04-04 14:45:02
Job completed
2022-04-04 14:45:01
Started container nextcloud
2022-04-04 14:45:01
Created container nextcloud
2022-04-04 14:45:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:45:01
Add eth0 [172.16.32.54/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485025-m2csq to ix-truenas
2022-04-04 14:45:00
Created pod: nextcloud-cronjob-27485025-m2csq
2022-04-04 14:45:00
Created job nextcloud-cronjob-27485025
2022-04-04 14:40:03
Deleted job nextcloud-cronjob-27485010
2022-04-04 14:40:03
Saw completed job: nextcloud-cronjob-27485020, status: Complete
2022-04-04 14:40:03
Job completed
2022-04-04 14:40:01
Started container nextcloud
2022-04-04 14:40:01
Created container nextcloud
2022-04-04 14:40:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:40:01
Add eth0 [172.16.32.53/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485020-69wr4 to ix-truenas
2022-04-04 14:40:00
Created pod: nextcloud-cronjob-27485020-69wr4
2022-04-04 14:40:00
Created job nextcloud-cronjob-27485020
2022-04-04 14:35:02
Deleted job nextcloud-cronjob-27485005
2022-04-04 14:35:02
Saw completed job: nextcloud-cronjob-27485015, status: Complete
2022-04-04 14:35:02
Job completed
2022-04-04 14:35:01
Started container nextcloud
2022-04-04 14:35:01
Created container nextcloud
2022-04-04 14:35:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:35:01
Add eth0 [172.16.32.52/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485015-bgjh7 to ix-truenas
2022-04-04 14:35:00
Created pod: nextcloud-cronjob-27485015-bgjh7
2022-04-04 14:35:00
Created job nextcloud-cronjob-27485015
2022-04-04 14:30:02
Deleted job nextcloud-cronjob-27485000
2022-04-04 14:30:02
Saw completed job: nextcloud-cronjob-27485010, status: Complete
2022-04-04 14:30:02
Job completed
2022-04-04 14:30:01
Started container nextcloud
2022-04-04 14:30:01
Created container nextcloud
2022-04-04 14:30:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:30:01
Add eth0 [172.16.32.51/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485010-kznfq to ix-truenas
2022-04-04 14:30:00
Created pod: nextcloud-cronjob-27485010-kznfq
2022-04-04 14:30:00
Created job nextcloud-cronjob-27485010
2022-04-04 14:25:03
Saw completed job: nextcloud-cronjob-27485005, status: Complete
2022-04-04 14:25:03
Job completed
2022-04-04 14:25:01
Started container nextcloud
2022-04-04 14:25:01
Created container nextcloud
2022-04-04 14:25:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:25:01
Add eth0 [172.16.32.50/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485005-bkbww to ix-truenas
2022-04-04 14:25:00
Created pod: nextcloud-cronjob-27485005-bkbww
2022-04-04 14:25:00
Created job nextcloud-cronjob-27485005
2022-04-04 14:22:24
Saw completed job: nextcloud-cronjob-27485000, status: Complete
2022-04-04 14:22:24
Job completed
2022-04-04 14:20:01
Started container nextcloud
2022-04-04 14:20:01
Created container nextcloud
2022-04-04 14:20:01
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:20:01
Add eth0 [172.16.32.49/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-cronjob-27485000-nl2t7 to ix-truenas
2022-04-04 14:20:00
Created pod: nextcloud-cronjob-27485000-nl2t7
2022-04-04 14:20:00
Created job nextcloud-cronjob-27485000
2022-04-04 14:19:19
Startup probe failed: Get "http://172.16.32.46:80/status.php": dial tcp 172.16.32.46:80: connect: connection refused
2022-04-04 14:19:05
Started container nextcloud
2022-04-04 14:19:05
Created container nextcloud
2022-04-04 14:19:05
Container image "tccr.io/truecharts/nextcloud:v23.0.3@sha256:c8d8684edb42934ffc0140dc71bb97d4d0f691d5823a662a777898141e4c0827" already present on machine
2022-04-04 14:18:41
Started container nextcloud-postgresql
2022-04-04 14:18:41
Created container nextcloud-postgresql
2022-04-04 14:18:41
Container image "ghcr.io/truecharts/postgresql:v14.2.0@sha256:73deda809571b1ba9e70dbe7223dfdee3bf17806fad1ad14fd809314372d1413" already present on machine
2022-04-04 14:18:40
Started container hostpatch
2022-04-04 14:18:40
Started container nextcloud-redis
2022-04-04 14:18:40
Created container nextcloud-redis
2022-04-04 14:18:40
Created container hostpatch
2022-04-04 14:18:39
Container image "ghcr.io/truecharts/redis:v6.2.6@sha256:91c06c5b87104f587893c6bca3ec54d9eaa656c6f2ac802ccca9f141e455e202" already present on machine
2022-04-04 14:18:39
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-04-04 14:18:39
Started container autopermissions
2022-04-04 14:18:39
Started container hostpatch
2022-04-04 14:18:39
Started container postgresql-init
2022-04-04 14:18:39
Created container autopermissions
2022-04-04 14:18:39
Created container hostpatch
2022-04-04 14:18:39
Created container postgresql-init
2022-04-04 14:18:38
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-04-04 14:18:38
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-04-04 14:18:38
Container image "ghcr.io/truecharts/postgresql:v14.2.0@sha256:73deda809571b1ba9e70dbe7223dfdee3bf17806fad1ad14fd809314372d1413" already present on machine
2022-04-04 14:18:38
Add eth0 [172.16.32.48/16] from ix-net
2022-04-04 14:18:38
Started container autopermissions
2022-04-04 14:18:38
Created container autopermissions
2022-04-04 14:18:38
Started container hostpatch
2022-04-04 14:18:38
Created container hostpatch
2022-04-04 14:18:38
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-04-04 14:18:37
Add eth0 [172.16.32.47/16] from ix-net
2022-04-04 14:18:37
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-04-04 14:18:37
Started container autopermissions
2022-04-04 14:18:36
Created container autopermissions
2022-04-04 14:18:36
Container image "ghcr.io/truecharts/alpine:v3.15.2@sha256:29ed3480a0ee43f7af681fed5d4fc215516abf1c41eade6938b26d8c9c2c7583" already present on machine
2022-04-04 14:18:36
Add eth0 [172.16.32.46/16] from ix-net

Successfully assigned ix-nextcloud/nextcloud-postgresql-0 to ix-truenas

Successfully assigned ix-nextcloud/nextcloud-7dcdc9bb55-c5thm to ix-truenas

Successfully assigned ix-nextcloud/nextcloud-redis-0 to ix-truenas
2022-04-04 14:18:34
Started container lb-port-10020
2022-04-04 14:18:34
Created container lb-port-10020
2022-04-04 14:18:34
Successfully provisioned volume pvc-64dbc988-5741-4948-bf92-195d3907f569
2022-04-04 14:18:34
Successfully provisioned volume pvc-e9621406-43f2-4f90-9249-4a1aacd61ecf
2022-04-04 14:18:34
Successfully provisioned volume pvc-d96e2be5-e76c-4bd9-8877-7cf74ce38f75
2022-04-04 14:18:34
Container image "rancher/klipper-lb:v0.1.2" already present on machine
2022-04-04 14:18:34
Add eth0 [172.16.32.45/16] from ix-net

0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-04-04 14:18:33
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator
2022-04-04 14:18:33
waiting for a volume to be created, either by external provisioner "zfs.csi.openebs.io" or manually created by system administrator

0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-04-04 14:18:33
create Pod nextcloud-postgresql-0 in StatefulSet nextcloud-postgresql successful
2022-04-04 14:18:33
create Pod nextcloud-redis-0 in StatefulSet nextcloud-redis successful
2022-04-04 14:18:33
External provisioner is provisioning volume for claim "ix-nextcloud/db-nextcloud-postgresql-0"
2022-04-04 14:18:33
create Claim db-nextcloud-postgresql-0 Pod nextcloud-postgresql-0 in StatefulSet nextcloud-postgresql success
2022-04-04 14:18:33
Created pod: nextcloud-7dcdc9bb55-c5thm

0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
2022-04-04 14:18:33
External provisioner is provisioning volume for claim "ix-nextcloud/data-nextcloud-redis-0"
2022-04-04 14:18:33
create Claim data-nextcloud-redis-0 Pod nextcloud-redis-0 in StatefulSet nextcloud-redis success
2022-04-04 14:18:33
Scaled up replica set nextcloud-7dcdc9bb55 to 1

Successfully assigned ix-nextcloud/svclb-nextcloud-zfzq4 to ix-truenas
2022-04-04 14:18:33
Created pod: svclb-nextcloud-zfzq4
2022-04-04 14:18:33
External provisioner is provisioning volume for claim "ix-nextcloud/nextcloud-data"
 

Viciouswall

Cadet
Joined
Jul 10, 2022
Messages
2
Hi, I had a similar issue as I use traefik to add SSL to my internal apps. In order to edit the config.php you need to go to
Shell -> by default it will be on postgress or redis, just search from the drop that does not have postgress, redis or cronjob and when you selected it -> Choose the second option to nextcloud from the drop down and then go in the shell. If you 'ls' there you will find the config.php which you can edit and just add your domain name under trusted proxies. Hope this helps.
 

valcadu

Cadet
Joined
Sep 12, 2022
Messages
3
Hi, I had a similar issue as I use traefik to add SSL to my internal apps. In order to edit the config.php you need to go to
Shell -> by default it will be on postgress or redis, just search from the drop that does not have postgress, redis or cronjob and when you selected it -> Choose the second option to nextcloud from the drop down and then go in the shell. If you 'ls' there you will find the config.php which you can edit and just add your domain name under trusted proxies. Hope this helps.
Hi all,

Verified here and found the config.php file, but I cant edit it since there are no editors available. How did you managed to do that please?
 

canosgmk

Dabbler
Joined
Dec 4, 2022
Messages
32
Hi, I had a similar issue as I use traefik to add SSL to my internal apps. In order to edit the config.php you need to go to
Shell -> by default it will be on postgress or redis, just search from the drop that does not have postgress, redis or cronjob and when you selected it -> Choose the second option to nextcloud from the drop down and then go in the shell. If you 'ls' there you will find the config.php which you can edit and just add your domain name under trusted proxies. Hope this helps.
Hello,

I am working through this issue now, and your suggestion isn't working for me. I think the issue is your guidance of "second option to nextcloud from the drop down". After the last update, i think we need to know the name of the option as it isn't working for me. All config/config.php is "permission declined". I also tried the #vim, but the shell just looks at me and doesn't population anything.

Please review the below photos and let me know what i'm doing wrong:
nextcloud options.PNG

nextcloud shell.PNG
 

likqez

Cadet
Joined
Sep 8, 2023
Messages
1
Hey,

config is a directory, u need to access it to find the config.php file :)
Open it with your favourite editor like vim or nano.
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
dont know where it's located but you can add trusted domains via env variable

Variable NEXTCLOUD_TRUSTED_DOMAINS
Value : "yourtrustydomain.com"
Where can I find a doc about the variables for the Nextcloud-App under Truenas?
 

MichaelN

Cadet
Joined
Feb 27, 2024
Messages
7
Where can I find a doc about the variables for the Nextcloud-App under Truenas?
I struggled for days trying to figure out how configure my nextcloud without accessing the config.php file. I confirmed that you do not need to access it in order to configure a domain. You must simply have the correct environmental overwrites in place.

Here are the overwrite parameters the documentation has listed:
  • OVERWRITEHOST (empty by default): Set the hostname of the proxy. Can also specify a port.
  • OVERWRITEPROTOCOL (empty by default): Set the protocol of the proxy, http or https.
  • OVERWRITECLIURL (empty by default): Set the cli url of the proxy (e.g. https://mydnsname.example.com)
  • OVERWRITEWEBROOT (empty by default): Set the absolute path of the proxy.
  • OVERWRITECONDADDR (empty by default): Regex to overwrite the values dependent on the remote address.

Below are the 3 overwrites that I had to use:




Screenshot 2024-03-04 154303.png
 

cyberg

Cadet
Joined
Mar 9, 2024
Messages
1
That doesn't help the truenas Scale users. Thanks for trying.
Yes it does. open shell for the nextcloud container, select last drop down for pods, then select nextcloud for containers, click choose. then type 'cd config', then 'apt install nano', then 'nano config.php' and you are in and can edit the config.php file
 
Top