feat: Added attic ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
{...}: {
|
||||
{config, ...}: let
|
||||
socket = "/run/attic/attic.sock";
|
||||
in {
|
||||
sops = {
|
||||
secrets."attic/jwt_secret" = {};
|
||||
templates."attic.env".content = ''
|
||||
ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64=${config.sops.placeholder."attic/jwt_secret"}
|
||||
'';
|
||||
};
|
||||
services = {
|
||||
atticd = {
|
||||
enable = true;
|
||||
listen = "/run/attic/attic.sock";
|
||||
settings.listen = socket;
|
||||
environmentFile = config.sops.templates."attic.env".path;
|
||||
};
|
||||
caddy = {
|
||||
virtualHosts."cache.darksailor.dev".extraConfig = ''
|
||||
reverse_proxy /run/attic/attic.sock {
|
||||
transport http {
|
||||
protocol = "fd"
|
||||
}
|
||||
}
|
||||
reverse_proxy unix/${socket}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user