mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00:36:25 +00:00
19 lines
348 B
Nix
19 lines
348 B
Nix
# Reference: https://carjorvaz.com/posts/the-holy-grail-nextcloud-setup-made-easy-by-nixos/
|
|
|
|
{ config, ... }:
|
|
let
|
|
fqdn = "onlyoffice.${config.domainName}";
|
|
in
|
|
{
|
|
services = {
|
|
nginx.virtualHosts."${fqdn}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
};
|
|
|
|
onlyoffice = {
|
|
enable = true;
|
|
hostname = fqdn;
|
|
};
|
|
};
|
|
}
|