feat: added onlyoffice

This commit is contained in:
silver 2023-10-27 01:54:41 +01:00
parent b1c679c73f
commit 1dc8e1109d

View file

@ -56,6 +56,7 @@ in {
skynet_acme.domains = [ skynet_acme.domains = [
domain domain
"onlyoffice.${domain}"
]; ];
skynet_dns.records = [ skynet_dns.records = [
@ -64,6 +65,11 @@ in {
r_type = "CNAME"; r_type = "CNAME";
value = cfg.host.name; value = cfg.host.name;
} }
{
record = "onlyoffice.${cfg.domain.sub}";
r_type = "CNAME";
value = cfg.host.name;
}
]; ];
# /var/lib/nextcloud/data # /var/lib/nextcloud/data
@ -94,9 +100,21 @@ in {
}; };
}; };
services.nginx.virtualHosts.${domain} = { nixpkgs.config.allowUnfree = true;
services.onlyoffice = {
enable = true;
};
services.nginx.virtualHosts = {
${domain} = {
forceSSL = true; forceSSL = true;
useACMEHost = "skynet"; useACMEHost = "skynet";
}; };
"onlyoffice.${domain}" = {
forceSSL = true;
useACMEHost = "skynet";
locations."/".proxyPass = "http://127.0.0.1:8000";
};
};
}; };
} }