Files
aloslider c92b90e406 Small modules config restructure
Changed variables names in every module
2026-10-31 19:48:50 +03:00

20 lines
598 B
Nix

{ config, lib, ... }:
with lib;
let
moduleCfg = config.selfhosted.seafile;
cfg = moduleCfg.collabora;
domain = config.sops.placeholder."domains/serv";
seafileUrl = "https://${moduleCfg.server.subdomain}.${domain}";
in
{
config = mkIf moduleCfg.enable {
sops.templates."collabora.env".content = ''
TZ=${config.time.timeZone}
DONT_GEN_SSL_CERT=true
server_name=${cfg.subdomain}.${domain}
aliasgroup1=${seafileUrl}:443
extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:net.frame_ancestors=${seafileUrl} --o:logging.level=warning
'';
};
}