infrastructure/machines/compute01/onlyoffice/default.nix
2023-10-05 09:17:06 +02:00

21 lines
399 B
Nix

{ config, ... }:
let hostname = "documentserver.dgnum.eu";
in {
services.onlyoffice = {
inherit hostname;
enable = true;
jwtSecretFile = config.age.secrets."onlyoffice-jwt_secret_file".path;
port = 8015;
};
services.nginx.virtualHosts.${hostname} = {
enableACME = true;
forceSSL = true;
};
dgn-secrets.matches."^onlyoffice-.*$" = { owner = "onlyoffice"; };
}