Add cache storj gateway

This commit is contained in:
Charlotte 🦝 Delenk 2022-03-02 20:56:07 +01:00
parent 9867a0369c
commit d228ef73d3
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 23 additions and 2 deletions

View file

@ -18,6 +18,7 @@
./services/postfix.nix
./services/autodeploy.nix
./services/minecraft.nix
./services/nix-cache.nix
];
boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ];

View file

@ -0,0 +1,16 @@
{ ... }: {
imports = [
(import ../../modules/gateway-st.nix {
name = "nix-cache";
port = 7778;
})
];
services.nginx.virtualHosts."cache.int.chir.rs" = {
sslCertificate = "/var/lib/acme/int.chir.rs/cert.pem";
sslCertificateKey = "/var/lib/acme/int.chir.rs/key.pem";
locations."/" = {
proxyPass = "http://localhost:7778/";
proxyWebsockets = true;
};
};
}

View file

@ -16,6 +16,10 @@ services:
accessGrant: ENC[AES256_GCM,data:QdRa+T5aujIRJiuKhuF4cD4hqHWGXqEQhGuoNdF953FSKlH+ajR0R8lo3eoGjJe3ZkSy5MPUlg6fqMZmnE8NSSBRpKm+uSdGt4N9OIrqWrQ9ahPUY8MOHOCWrpFTclsloXk7mG6WblHlntlmq9/XxjDfSl7DP1KgCggWhcAh3jhccQPzSLq+/iXrcCBM8KaP5AzLiuCar89lX5UFnkEZw/oTtebIzL2cE2GUJPSAILQGFwUaxPlfJrYKAyEmN7OC9ZpT7u4CmVeNAmeVMlbbZudnY1Yj2QtpftyACJWjKVvBuPeUFY+qHgl6QmVSoOPXPkI8z1hCEQCWa4jbM72oc8PQliLrfxJYmlYJe44kUXgFdmA6vEgnIfec1ioosOG2uVJAiTq9iyQ=,iv:76ZEo2VO4p9csQeZYyVln+28Y1L+hwii61GqfppQbOA=,tag:aLGWOVMWwh0vODOFz0H3Vg==,type:str]
accessKey: ENC[AES256_GCM,data:KoaoTqA=,iv:KQCJaCzkK6WA0rbRMwfKBubSuVaFOvk1AEF1dLFROIY=,tag:Kq7S8efArNXMwVQUTyI7Iw==,type:str]
secretKey: ENC[AES256_GCM,data:yUGS7NZo4ZirOK6d+5hABnfnCA==,iv:H1YXDW0y0jehCyt/RLzb/VptGL6iweOCwWtPuREEVdU=,tag:RqZv6h9Y3MaMXQoIFjSDjQ==,type:str]
cache:
accessGrant: ENC[AES256_GCM,data:UzgGRO2LBwZmRsmjp/OK4bWB5skGYpqYJ5/WfHiDLwKqMFW1xzKuHHdszO8YRqqeWdCnvooloRBzh++dgJ6NQWUEqNdm9+RmBB2RkvgkwJDr5aMmMJCIKsHws09xwvOyfxYARpc3VbtjMJujcnMgPy8/Cq7eK3XkoJwBaFRQcat8kWdrZ4ihrFHo8/CkyOT13RC6p2Fu45FT0Ud89u+hIL+8UDxpA0v7wgH81dXkyA0JDyXGpXsYkq3dsR2jVZeO29WpI7esBUunaLkSNdF6xmON2ycIemu/cNsWF1S5giQJUyBJfyZN0nyM4NqP5ri7xXEsekf5hpYnCP63rNOYRpGtEriq3bKRzieOyWtURMmyG9hsnII1HR5crgmv/xwO4WJvNnlZr0YPl/fmGwkbaacBsQ==,iv:MNIB6G1T0KbSFgDxETSR9sG2SNNo7yDnrihLUpVkitQ=,tag:4E4fo6fXFh09OWKTgGF+hg==,type:str]
accessKey: ENC[AES256_GCM,data:M3VxzXY=,iv:kBjQ0XEs2Dn6XccmKSjNFT9yIzKdoLAd/jmufnrCC8s=,tag:ix1ZUPPPR3mMngInd5LLsA==,type:str]
secretKey: ENC[AES256_GCM,data:A4ZStjq4SJVDLdOXbjpy0fkHqovsh1EIb1z+dF2jv9BWoCYpjhr409j27/n/l1yp0oD4RAf4f73M6++jh/eDmlGPGBI8cb1xx51PiEkC3+axtWryCxNnnacofRG3g0w5apzG9JrI9p8BYKGiSXTlxpyWF102loTyImYSCvX22Hk=,iv:h71Sjgmoi6/6bO79q+RrNzgdv0BLRKjN7uOrwzkyZO0=,tag:C97OOSHW3F7ciKktDJM0QQ==,type:str]
minio_scrape: ENC[AES256_GCM,data:w+VescGVui8/70HsSP/WCQG/E9fU0X45BXF2qwPNE2vnYM9XyCreHezX218Vb5qDOU3vRl71CJGVH4nv28nBgWvtu017ITfh56CX9dZt7tFAUx198WqXxW1Xc+D9NggWHXUFyAD80+dkzoPH2mUrdhBYeXwlhwyp9+DLF0Up00kdLsjDtSHpDiKKoIvzk3m0K00GZkMtOOENpomAoqtUduUupYRmL1GaHBMJ+XcuLuyvfSI3uSK9BzFxIfNPcJdrP2F28g==,iv:xe7BrC5mLz48efufLup5v0x/aI0kaqXNQ07l4G6kUdg=,tag:yepSZfc3034JaYo2pp15CA==,type:str]
old-homepage: ENC[AES256_GCM,data:DgOLD0YCRXsRSvrjQ/pK4RpYdzcO/j2Ifg4eYXFivrEVVj5ooPKeeeJAMX+L+XOjjNmHo5r8o0AvBnvJ4TeGto3VOQynkxw5apvkedR5ecC654Sz5+bRGr2bgtVzujiLH7+IiB3ljH9KYflYASvfmumowmR8R6074GNGKZlH2F7UYDKDdbd48p4pOFWP3Lv5/1iDvJ7Ve3hVASZqiUlS4elMa+8T0HYKkJyxWb76AT+t0M54ps6xgqDYbjrmbO2+UK95Z8DanOk06tk1t30=,iv:2/KdwQ86SO/LFeHTGNDVY+d4ZQnujK7OGuBuGEwkCbU=,tag:7yOVg0V29aGMTT8O5422kw==,type:str]
postfixadmin:
@ -66,8 +70,8 @@ sops:
N1lNTTRhSDFsczd4VjNudUU2NEt4MUEKdVJIJmaoGcwUHa0BGB45jqYnm9aPVZxP
dl1vkMx8EAiKhWKbBwQm5fFZcNh371rspGE7KOXmwNbNWef5bVfHpQ==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2022-03-02T17:27:25Z"
mac: ENC[AES256_GCM,data:plNwqM4UKS0QSZxnOO9WUh+QQv05iAqE3ahgRkWrih9888zCJ85XZm2gpuoZcfB8HdklaRlms+oGIZ6zc3LgkfhFmkZRPjwcZWMX2b7KDXTE2bdl2f9nompDIuDXYMORgMH34fUJ/asFuPrX/NMm8y/JWZVjEZdvg95kqO58Qg8=,iv:MAIuNk7Vc/qw6zCHukQAOB05A1L1OZwlLcFMAarX/Jc=,tag:Y6xEPu4UGnEqq7knfN6NwQ==,type:str]
lastmodified: "2022-03-02T19:55:22Z"
mac: ENC[AES256_GCM,data:zmDRACKuw4te9Cd5Djp9II4E66ZqCQ7WZ4c5FVlPuEbPExC8Thk/2i5ObWm20G8Jc9fQI+IH7T1m8dyPPsr7fZv7rFvrkuMfGdjsU/GgOzgro8TDG9/wBnQHoqbDSgxsbLLTxo83E2GUI1S7huqPUBOUuFxHHtNK5anVShmT35I=,iv:nItvT/uCd58iG+sCzKYpgvUEV6VF0q+u6Kchs3UEdIs=,tag:Ry8ljbwDJblG9Cnk5gVDsQ==,type:str]
pgp:
- created_at: "2022-02-02T17:50:42Z"
enc: |