2024-01-14 22:05:39 +03:00
|
|
|
{config, ...}: {
|
|
|
|
services.hedgedoc = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
port = 3333;
|
|
|
|
domain = "doc.gaze.systems";
|
|
|
|
protocolUseSSL = true;
|
|
|
|
allowEmailRegister = false;
|
|
|
|
allowAnonymous = false;
|
2024-05-28 10:50:27 +03:00
|
|
|
allowAnonymousEdits = true;
|
|
|
|
allowFreeURL = true;
|
|
|
|
requireFreeURLAuthentication = true;
|
2024-01-14 22:05:39 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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}";
|
|
|
|
};
|
|
|
|
}
|