mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 08:46:25 +00:00
20 lines
348 B
Nix
20 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;
|
||
|
};
|
||
|
};
|
||
|
}
|