19 lines
485 B
Nix
19 lines
485 B
Nix
|
{config, ...}: {
|
||
|
services.hedgedoc = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
port = 3333;
|
||
|
domain = "doc.gaze.systems";
|
||
|
protocolUseSSL = true;
|
||
|
allowEmailRegister = false;
|
||
|
allowAnonymous = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.nginx.virtualHosts."doc.gaze.systems" = {
|
||
|
useACMEHost = "gaze.systems";
|
||
|
forceSSL = true;
|
||
|
locations."/".proxyPass = "http://${config.services.hedgedoc.settings.host}:${toString config.services.hedgedoc.settings.port}";
|
||
|
};
|
||
|
}
|