mirror of
https://github.com/Noratrieb/vps.git
synced 2026-07-12 08:17:45 +02:00
gaming
This commit is contained in:
parent
5a28c30d16
commit
4bec9e1bc2
40 changed files with 118 additions and 74 deletions
34
nix/modules/hedgedoc/default.nix
Normal file
34
nix/modules/hedgedoc/default.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue