This commit is contained in:
parent
1a25b198ef
commit
781ce2d5e9
24 changed files with 610 additions and 505 deletions
|
@ -1,8 +1,11 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.services.vm_onlyoffice;
|
||||
in
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.services.vm_onlyoffice;
|
||||
in {
|
||||
options.services.vm_onlyoffice = {
|
||||
enable = lib.mkEnableOption "Enable OnlyOffice service";
|
||||
pgsql_ip = lib.mkOption {
|
||||
|
@ -13,11 +16,11 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
age.secrets = {
|
||||
office-dbpass = {
|
||||
file = ./secrets/office-dbpass.age;
|
||||
file = ./secrets/office-dbpass.age;
|
||||
owner = "onlyoffice";
|
||||
};
|
||||
office-jwtpass = {
|
||||
file = ./secrets/office-jwtpass.age;
|
||||
file = ./secrets/office-jwtpass.age;
|
||||
owner = "onlyoffice";
|
||||
};
|
||||
};
|
||||
|
@ -33,6 +36,6 @@ in
|
|||
jwtSecretFile = config.age.secrets.office-jwtpass.path;
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 4369 5432 5672 6379 8000 8080 ];
|
||||
networking.firewall.allowedTCPPorts = [80 4369 5432 5672 6379 8000 8080];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue