From 517f4f00802e867e5abb2059c7ce61995e000b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sun, 16 May 2021 00:40:09 +0100 Subject: [PATCH] postgres: Get rid of password authentication Podman pods make this obsolete; though we need to explicitly set slirp4netns, otherwise podman will not create private network namespaces for the pods. --- configuration/services/gitea.nix | 3 +-- configuration/services/nextcloud.nix | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configuration/services/gitea.nix b/configuration/services/gitea.nix index 0abdb49..2258566 100644 --- a/configuration/services/gitea.nix +++ b/configuration/services/gitea.nix @@ -14,6 +14,7 @@ virtualisation.pods.gitea = { hostname = "gitea.tlater.net"; publish = [ "3000:3000" "2221:2221" ]; + network = "slirp4netns"; containers = { gitea = { @@ -26,7 +27,6 @@ DB_HOST = "gitea-postgres:5432"; DB_NAME = "gitea"; DB_USER = "gitea"; - DB_PASSWD = "/qNDDK9WCMuubfA7D8DFwfl9T+Gy2IMDvPhiNpcxZjY="; USER_UID = toString config.users.extraUsers.gitea.uid; USER_GID = toString config.users.extraGroups.gitea.gid; @@ -42,7 +42,6 @@ environment = { POSTGRES_DB = "gitea"; POSTGRES_USER = "gitea"; - POSTGRES_PASSWORD = "/qNDDK9WCMuubfA7D8DFwfl9T+Gy2IMDvPhiNpcxZjY="; }; volumes = [ "gitea-db-data:/var/lib/postgresql/data" ]; }; diff --git a/configuration/services/nextcloud.nix b/configuration/services/nextcloud.nix index ba1754b..4b74ac7 100644 --- a/configuration/services/nextcloud.nix +++ b/configuration/services/nextcloud.nix @@ -4,6 +4,7 @@ virtualisation.pods.nextcloud = { hostname = "nextcloud.tlater.net"; publish = [ "3001:80" ]; + network = "slirp4netns"; containers = { nextcloud = { @@ -18,7 +19,6 @@ POSTGRES_DB = "nextcloud"; POSTGRES_USER = "nextcloud"; POSTGRES_HOST = "nextcloud-postgres"; - POSTGRES_PASSWORD = "rI7t7Nek1yGA9ucrRc7Uhy0jcjwPjnXa8me4o8tJON8="; OVERWRITEPROTOCOL = "https"; }; }; @@ -43,7 +43,6 @@ environment = { POSTGRES_DB = "nextcloud"; POSTGRES_USER = "nextcloud"; - POSTGRES_PASSWORD = "rI7t7Nek1yGA9ucrRc7Uhy0jcjwPjnXa8me4o8tJON8="; }; volumes = [ "nextcloud-db-data:/var/lib/postgresql/data" ]; };