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;
|
|
|
|
defaults.email = "cert+${caddy_email_for_zerossl}";
|
|
|
|
certs."${personalization.onlyoffice_url}" = {
|
|
|
|
webroot = "/var/lib/acme/challenges-com";
|
|
|
|
email = "cert+${caddy_email_for_zerossl}";
|
|
|
|
group = "nginx";
|
|
|
|
extraDomainNames = [ "www.${personalization.onlyoffice_url}" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.nginx.extraGroups = [ "acme" ];
|
|
|
|
|
2023-06-13 10:39:57 -07:00
|
|
|
}
|