feat: Added minecraft

This commit is contained in:
uttarayan21
2025-07-11 20:32:06 +05:30
parent 4f69c534aa
commit 1c49719787
13 changed files with 314 additions and 174 deletions

View File

@@ -0,0 +1,29 @@
{
pkgs,
config,
...
}: {
sops = {
secrets."paperless/adminpass".owner = config.users.users.paperless.name;
};
services = {
paperless = {
enable = true;
passwordFile = config.sops.secrets."paperless/adminpass".path;
environmentFile = pkgs.writeText "paperless.env" ''
PAPERLESS_ENABLE_HTTP_REMOTE_USER=true
PAPERLESS_URL=https://paperless.darksailor.dev
PAPERLESS_SECRET_KEY=${config.sops.placeholder."paperless/secret_key"}
'';
};
caddy = {
virtualHosts."paperless.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy localhost:28981
'';
};
};
}