This commit is contained in:
nora 2026-06-11 20:28:02 +02:00
parent 5a28c30d16
commit 4bec9e1bc2
40 changed files with 118 additions and 74 deletions

View file

@ -0,0 +1,34 @@
{ config, ... }: {
age.secrets.hedgedoc_env.file = ../../secrets/hedgedoc_env.age;
services.hedgedoc = {
enable = true;
environmentFile = config.age.secrets.hedgedoc_env.path
;
settings = {
domain = "hedgedoc.noratrieb.dev";
allowAnonymous = false;
protocolUseSSL = true;
enableUploads = "none";
#imageuploadtype = "minio";
# doesn't work yet :(
minio = {
accessKey = "GK23559653411395bd9f29dd70";
endPoint = "localhost";
port = 3900;
secure = false;
};
s3bucket = "hedgedoc";
};
};
services.caddy.virtualHosts = {
"hedgedoc.noratrieb.dev" = {
logFormat = "";
extraConfig = ''
encode zstd gzip
reverse_proxy * localhost:${builtins.toString config.services.hedgedoc.settings.port}
'';
};
};
}