feat: added onlyoffice
This commit is contained in:
parent
b1c679c73f
commit
1dc8e1109d
1 changed files with 21 additions and 3 deletions
|
@ -56,6 +56,7 @@ in {
|
|||
|
||||
skynet_acme.domains = [
|
||||
domain
|
||||
"onlyoffice.${domain}"
|
||||
];
|
||||
|
||||
skynet_dns.records = [
|
||||
|
@ -64,6 +65,11 @@ in {
|
|||
r_type = "CNAME";
|
||||
value = cfg.host.name;
|
||||
}
|
||||
{
|
||||
record = "onlyoffice.${cfg.domain.sub}";
|
||||
r_type = "CNAME";
|
||||
value = cfg.host.name;
|
||||
}
|
||||
];
|
||||
|
||||
# /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;
|
||||
useACMEHost = "skynet";
|
||||
};
|
||||
"onlyoffice.${domain}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "skynet";
|
||||
locations."/".proxyPass = "http://127.0.0.1:8000";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue