]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - DOCUMENTATION.md
Fix patrick certificate
[perso/Immae/Config/Nix.git] / DOCUMENTATION.md
index 25006ce2842e2ac2c10684275cb3cbe45bb6a89e..4def9de79877bcec150a3bb658ace5f1be70b53a 100644 (file)
@@ -260,6 +260,22 @@ Nextcloud
 - Issues :
   https://docs.nextcloud.com/server/16/admin_manual/maintenance/manual_upgrade.html
 
+- Farm :
+  Once a new instance thename is created, create the database:
+  ```
+  CREATE USER nextcloud_thename WITH PASSWORD 'somepassword';
+  CREATE DATABASE nextcloud_thename WITH OWNER nextcloud_thename;
+  ```
+  Then add this to the config.php:
+  ```
+  'appstoreenabled' => false,
+  ```
+  Then run:
+  ```
+  nextcloud-occ-thename maintenance:install --database=pgsql --database-name=nextcloud_thename --database-host=/run/postgresql --database-user=nextcloud_thename --admin-user=immae --data-dir=/var/lib/nextcloud_farm/thename/data
+  ```
+  Finally, edit the config.php to add the correct trusted domain
+
 Flakes
 ------