fix(forgejo): Rename db for passwordless connection

This commit is contained in:
Tom Hubrecht 2023-11-29 20:31:16 +01:00
parent 3e34fbebe1
commit 9e893664ec

View file

@ -4,7 +4,8 @@ let
port = 3000;
host = "git.dgnum.eu";
in {
services.forgejo = {
services = {
forgejo = {
enable = true;
user = "git";
@ -14,9 +15,7 @@ in {
database = {
type = "postgres";
user = "git";
name = "gitea";
passwordFile = config.age.secrets."forgejo-database_password_file".path;
createDatabase = false;
name = "git";
};
settings = {
@ -66,7 +65,9 @@ in {
# mailerPasswordFile = config.age.secrets."_ht-mail.pwd".path;
};
services.nginx = {
postgresql.enable = true;
nginx = {
enable = true;
virtualHosts.${host} = {
@ -75,6 +76,7 @@ in {
locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
};
};
};
users.users.git = {
description = "Git Service";