2021-11-14 23:56:00 +01:00
|
|
|
{ ... }:
|
|
|
|
let
|
2021-11-15 01:02:47 +01:00
|
|
|
port = 3001;
|
2021-11-14 23:56:00 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.hedgedoc = {
|
|
|
|
enable = true;
|
|
|
|
configuration = {
|
|
|
|
protocolUseSSL = true;
|
|
|
|
# scp =; # TODO
|
2022-01-24 22:04:43 +01:00
|
|
|
domain = "docs.beta.rz.ens.wtf";
|
2022-09-10 16:16:47 +02:00
|
|
|
host = "[::1]";
|
2021-11-14 23:56:00 +01:00
|
|
|
port = port;
|
|
|
|
db = {
|
|
|
|
dialect = "sqlite";
|
|
|
|
storage = "/var/lib/hedgedoc/db.hedgedoc.sqlite";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
virtualHosts = {
|
|
|
|
"docs.beta.rz.ens.wtf" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations = {
|
|
|
|
"/" = {
|
2022-09-10 16:16:47 +02:00
|
|
|
proxyPass = "http://[::1]:${toString port}";
|
2021-11-15 00:48:11 +01:00
|
|
|
proxyWebsockets = true;
|
2021-11-14 23:56:00 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|