forked from DGNum/infrastructure
fix(forgejo): Rename db for passwordless connection
This commit is contained in:
parent
3e34fbebe1
commit
9e893664ec
1 changed files with 65 additions and 63 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue