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