feat: caching
This commit is contained in:
@@ -1,5 +1,16 @@
|
|||||||
{
|
{
|
||||||
description = "yukkop's nix utilities";
|
description = "yukkop's nix utilities";
|
||||||
|
|
||||||
|
nixConfig = {
|
||||||
|
extra-substituters = [
|
||||||
|
"https://cache.nixos.org"
|
||||||
|
"https://cache.hectic-lab.com/hectic"
|
||||||
|
];
|
||||||
|
extra-trusted-public-keys = [
|
||||||
|
"hectic:KMQsKow4SoA9K2vOJlOljmx7/Zpf91Yy+5qEtxDDCzA="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
nixpkgs-fixed.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs-fixed.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
services.nginx.virtualHosts."cache.${domain}" = {
|
services.nginx.virtualHosts."cache.${domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 0;
|
||||||
|
'';
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:8080";
|
proxyPass = "http://127.0.0.1:8080";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,10 +37,6 @@ let
|
|||||||
hashedPasswordFile = config.sops.secrets."mailserver/${name}/hashedPassword".path;
|
hashedPasswordFile = config.sops.secrets."mailserver/${name}/hashedPassword".path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
sslOpts = {
|
|
||||||
sslCertificate = config.sops.secrets."ssl/porkbun/${domain}/domain.cert.pem".path;
|
|
||||||
sslCertificateKey = config.sops.secrets."ssl/porkbun/${domain}/private.key.pem".path;
|
|
||||||
};
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.hectic
|
self.nixosModules.hectic
|
||||||
@@ -118,18 +114,6 @@ in {
|
|||||||
key = "init-postgresql";
|
key = "init-postgresql";
|
||||||
};
|
};
|
||||||
"atticd/environment" = {};
|
"atticd/environment" = {};
|
||||||
"ssl/porkbun/${domain}/domain.cert.pem" = {
|
|
||||||
group = "nginx";
|
|
||||||
mode = "0440";
|
|
||||||
};
|
|
||||||
"ssl/porkbun/${domain}/private.key.pem" = {
|
|
||||||
group = "nginx";
|
|
||||||
mode = "0440";
|
|
||||||
};
|
|
||||||
"ssl/porkbun/${domain}/public.key.pem" = {
|
|
||||||
group = "nginx";
|
|
||||||
mode = "0440";
|
|
||||||
};
|
|
||||||
"wg-bfs/private-key" = {};
|
"wg-bfs/private-key" = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user