From 71b88525891d4da16c9cf822218b32d604e90eec Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 17 Dec 2019 11:04:29 +1000 Subject: [PATCH] Added more comments --- roles/nextcloud.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/roles/nextcloud.nix b/roles/nextcloud.nix index 68aa428..da379df 100644 --- a/roles/nextcloud.nix +++ b/roles/nextcloud.nix @@ -14,22 +14,22 @@ hostName = "cloud.mcwhirter.io"; # FQDN for the Nextcloud instance nginx.enable = true; # Whether to enable nginx virtual host management config = { # Configure Nextcloud - dbtype = "pgsql"; # Set database type - dbname = "nextcloud"; - dbhost = "/run/postgresql"; - dbuser = "nextcloud"; - dbpassFile = "/run/keys/nextcloud-dbpass"; # Where to find the password - adminpassFile = "/run/keys/nextcloud-admin"; # Where to find the password - adminuser = "root"; + dbtype = "pgsql"; # Set the database type + dbname = "nextcloud"; # Set the database name + dbhost = "/run/postgresql"; # Set the database connection + dbuser = "nextcloud"; # Set the database user + dbpassFile = "/run/keys/nextcloud-dbpass"; # Where to find the database password + adminpassFile = "/run/keys/nextcloud-admin"; # Where to find the admin password + adminuser = "root"; # Set the admin user name overwriteProtocol = "https"; # Force Nextcloud to always use HTTPS }; }; services.postgresql = { enable = true; # Ensure postgresql is enabled - ensureDatabases = [ "nextcloud" ]; + ensureDatabases = [ "nextcloud" ]; # Ensure the database exists ensureUsers = [ - { name = "nextcloud"; + { name = "nextcloud"; # Ensure the database user exists ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; } ]; @@ -62,6 +62,6 @@ users.groups.keys.members = [ "nextcloud" ]; # Required due to NixOps issue #1204 users.groups.nextcloud.members = [ "nextcloud" ]; # Added for keys permissions - networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedTCPPorts = [ 80 443 ]; # Open the required firewall ports }