Skip to content

Commit

Permalink
host: opt: www: forgejo: Changed display name and enabled federation
Browse files Browse the repository at this point in the history
  • Loading branch information
aftix committed Dec 23, 2024
1 parent 2b39b98 commit 6d044b1
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions host/opt/www/forgejo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ in {
PASSWD = config.sops.secrets.forgejo_smtp_password.path;
};
settings = {
admin.SEND_NOTIFICATION_EMAIL_ON_NEW_USER = true;
database = {
socket = config.services.postgresql.settings.unix_socket_directories;
type = "postgresql";
DEFAULT = {
APP_NAME = "aftforge";
APP_SLOGAN = "Bespoke artisinal software";
};

admin.SEND_NOTIFICATION_EMAIL_ON_NEW_USER = true;
mailer = {
ENABLED = true;
PROTOCOL = "smtps";
Expand All @@ -117,33 +118,9 @@ in {
SSH_DOMAIN = fullHostname;
LANDING_PAGE = "explore";
};
federation.ENABLED = true;
};
};

postgresql = {
enable = true;
ensureDatabases = ["forgejo"];
ensureUsers = [
{
name = serviceCfg.user;
ensureDBOwnership = true;
ensureClauses = {
login = true;
replication = true;
};
}
];
identMap = lib.mkOverride 60 ''
superuser_map root postgres
superuser_map postgres postgres
superuser_map /^(.*)$ \1
'';
authentication = lib.mkOverride 60 ''
#type database DBuser auth-method
local sameuser all peer map=superuser_map
'';
settings.unix_socket_directories = "/var/run/postgresql";
};
};
};
}

0 comments on commit 6d044b1

Please sign in to comment.