nextcloud / helm

A community maintained helm chart for deploying Nextcloud on Kubernetes.
GNU Affero General Public License v3.0
333 stars 269 forks source link

Add trusted_domains after installation #640

Open denppa opened 1 month ago

denppa commented 1 month ago

Installed Nextcloud via helm on a baremetal k8s cluster. Created an ingress from another domain to point to Nextcloud service, but it won't let me visit the site because of a trusted_domain error.

Went back into values.yml and added the new domain, ran:

helm upgrade -n nextcloud nextcloud/nextcloud --values values.yml

However, the config.php did not reflect the new list of trusted domains after restart.

Relevent values.yml

  trustedDomains:
    - nextcloud.mydomain.com
    - nextcloud.mydomain2.com

mydomain2.com is the new domain, did not get added to config.php.

jessebot commented 1 month ago

hmmm, not sure if the way we set the trusted domain is parsed a second time after installation, but can you try running the occ command to update it?

It should be something like:

kubectl exec -it your-nextcloud-pod -- /bin/sh -c "php occ config:system:set trusted_domains 2 --value=nextcloud.mydomain2.com"
denppa commented 1 month ago

hmmm, not sure if the way we set the trusted domain is parsed a second time after installation, but can you try running the occ command to update it?

It should be something like:

kubectl exec -it your-nextcloud-pod -- /bin/sh -c "php occ config:system:set trusted_domains 2 --value=nextcloud.mydomain2.com"

This is the solution. Would be great if the documentation can mention that certain params inside values.yml will need to be changed manually after deployment.

jessebot commented 1 month ago

This is the solution.

Ok, good, glad it's at least not a blocker 🙏

Would be great if the documentation can mention that certain params inside values.yml will need to be changed manually after deployment.

Sure, we're open to PRs for this in the README here: https://github.com/nextcloud/helm/tree/main/charts/nextcloud