feat: nextcloud test

This commit is contained in:
Nick 2025-06-09 03:04:37 -05:00
parent 1d1afd49cc
commit f664c6142b
2 changed files with 18 additions and 6 deletions

View file

@ -8,7 +8,12 @@ let
inherit (flake.config.people) user0;
inherit (flake.config.people.users.${user0}) name;
inherit (flake.config.machines.devices) ceres;
inherit (flake.config.services.instances) nextcloud nginx web;
inherit (flake.config.services.instances)
nextcloud
nginx
smtp
web
;
service = nextcloud;
localhost = web.localhost.address0;
host = "${service.subdomain}.${web.domains.url0}";
@ -43,8 +48,14 @@ in
settings = {
default_phone_region = "CA";
log_type = "file";
mail_sendmailmode = "pipe";
mail_smtpmode = "sendmail";
mail_sendmailmode = "smtp";
mail_smtpmode = "smtp";
mail_smtphost = service.email.address0;
mail_smtpport = smtp.ports.port0;
mail_smtpsecure = "ssl";
mail_smtpauth = true;
mail_smtpname = smtp.hostname;
mail_smtppassword = config.sops.secrets."${service.name}-smtp".path;
maintenance_window_start = 4;
overwriteprotocol = "https";
trusted_proxies = [
@ -93,6 +104,7 @@ in
})
[
"pass"
"smtp"
]
);
};