Compare commits

..

2 commits

Author SHA1 Message Date
Fiscal Velvet Poet fcabd95e7e
forgejo: updated deprecated psql setting to DEFAULT.APP_NAME 2024-06-05 23:07:10 +10:00
Fiscal Velvet Poet 3662f9f588
forgejo: updated deprecated setting to ensureDBOwnership 2024-06-05 22:14:54 +10:00

View file

@ -19,6 +19,7 @@ in {
httpPort = 3002; # Provided unique port httpPort = 3002; # Provided unique port
rootUrl = "https://reciproka.dev/"; # Root web URL rootUrl = "https://reciproka.dev/"; # Root web URL
settings = let settings = let
DEFAULT.APP_NAME = "Reciproka Kolektivo: Forgejo Service"; # Give the site a name
server = { server = {
DOMAIN = "reciproka.dev"; # Domain name DOMAIN = "reciproka.dev"; # Domain name
HTTP_PORT = 3002; # Provided unique port HTTP_PORT = 3002; # Provided unique port
@ -73,11 +74,7 @@ in {
ensureUsers = [ ensureUsers = [
{ {
name = "forgejo"; # Ensure the database user persists name = "forgejo"; # Ensure the database user persists
ensurePermissions = { ensureDBOwnership = true;
# Ensure the database permissions persist
"DATABASE forgejo" = "ALL PRIVILEGES";
"ALL TABLES IN SCHEMA public" = "ALL PRIVILEGES";
};
} }
]; ];
package = pkgs.postgresql_16; package = pkgs.postgresql_16;