feat : Add of secret for roundcube and vaultwarden

This commit is contained in:
Wateir 2025-12-24 17:18:24 +01:00
parent a59e409a49
commit 2f5c8be389
18 changed files with 116 additions and 51 deletions

View file

@ -1,5 +1,8 @@
{ config,lib, ... }:
let
cfg = config.services.forgejo;
srv = cfg.settings.server;
in
lib.mkIf config.module.forgejo.enable {
services.forgejo = {
enable = true;
@ -11,7 +14,7 @@ lib.mkIf config.module.forgejo.enable {
DOMAIN = "git.${config.module.domain}";
# You need to specify this to remove the port from URLs in the web UI.
ROOT_URL = "https://${srv.DOMAIN}/";
HTTP_PORT = 8222;
HTTP_PORT = config.module.forgejo.internalPort;
};
};
};