Sovran_SystemsOS/modules/onlyoffice.nix

27 lines
628 B
Nix
Raw Normal View History

2023-06-13 10:39:57 -07:00
{config, pkgs, lib, ...}:
let
personalization = import ./personalization.nix;
in
{
services.onlyoffice = {
enable = true;
2023-06-13 10:41:01 -07:00
hostname = "${personalization.onlyoffice_url}";
2023-06-13 10:39:57 -07:00
};
2023-06-13 11:06:53 -07:00
services.nginx.defaultSSLListenPort = 9443;
services.nginx.defaultHTTPListenPort = 9080;
2023-06-13 12:09:54 -07:00
security.acme = {
acceptTerms = true;
2023-06-13 12:11:37 -07:00
defaults.email = "cert+${personalization.caddy_email_for_zerossl}";
2023-06-13 12:09:54 -07:00
certs."${personalization.onlyoffice_url}" = {
webroot = "/var/lib/acme/challenges-com";
2023-06-13 12:11:37 -07:00
email = "cert+${personalization.caddy_email_for_zerossl}";
2023-06-13 12:09:54 -07:00
group = "nginx";
};
};
users.users.nginx.extraGroups = [ "acme" ];
2023-06-13 10:39:57 -07:00
}