This commit is contained in:
parent
f16b30710a
commit
f9b9da6f31
1 changed files with 3 additions and 1 deletions
|
@ -14,8 +14,10 @@ in {
|
|||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
age.secrets.forgejoDBPass.file = ./secrets/forgejoDBPass.age;
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
package = pkgs.forgejo;
|
||||
user = "tbarnouin";
|
||||
settings = {
|
||||
server.HTTP_PORT = 3000;
|
||||
|
@ -29,7 +31,7 @@ in {
|
|||
host = "${cfg.pgsql_ip}";
|
||||
name = "gitea";
|
||||
user = "gitea";
|
||||
passwordFile = "/run/secrets/forgejo/forgejo-dbpass";
|
||||
passwordFile = config.age.secrets.forgejoDBPass.path;
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [3000];
|
||||
|
|
Loading…
Add table
Reference in a new issue