nixbld: install hedgedoc

This commit is contained in:
Sebastien Bourdeauducq 2022-09-01 11:39:47 +08:00
parent 20175f7bc0
commit 365ec54358
2 changed files with 21 additions and 0 deletions

View File

@ -788,6 +788,13 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
}; };
"docs.m-labs.hk" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://127.0.0.1:9825";
locations."/socket.io/".proxyPass = "http://127.0.0.1:9825";
locations."/socket.io/".proxyWebsockets = true;
};
"nmigen.org" = { "nmigen.org" = {
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
@ -885,5 +892,18 @@ in
config.adminpassFile = "/etc/nixos/secret/nextcloud_pass.txt"; config.adminpassFile = "/etc/nixos/secret/nextcloud_pass.txt";
}; };
services.hedgedoc = {
enable = true;
configuration.port = 9825;
configuration.domain = "docs.m-labs.hk";
configuration.protocolUseSSL = true;
configuration.allowEmailRegister = false;
configuration.allowAnonymous = false;
configuration.db = {
dialect = "sqlite";
storage = "/var/lib/hedgedoc/db.hedgedoc.sqlite";
};
};
system.stateVersion = "21.05"; system.stateVersion = "21.05";
} }

View File

@ -34,6 +34,7 @@ forum CNAME @
perso CNAME @ perso CNAME @
rt CNAME @ rt CNAME @
files CNAME @ files CNAME @
docs CNAME @
rpi-1 AAAA 2001:470:f821:1:dea6:32ff:fe8a:6a93 rpi-1 AAAA 2001:470:f821:1:dea6:32ff:fe8a:6a93
rpi-2 AAAA 2001:470:f821:1:ba27:ebff:fef0:e9e6 rpi-2 AAAA 2001:470:f821:1:ba27:ebff:fef0:e9e6