configuration.nix/hosts/rico1/services/apps/blocky.nix

27 lines
581 B
Nix
Raw Normal View History

2024-10-28 23:54:19 +05:30
_:
2024-10-27 18:34:32 +05:30
let
2024-10-27 23:09:50 +05:30
inherit (import ../../../shared/caddy-helpers.nix) logFormat tlsAcmeDnsChallenge;
2024-10-28 23:54:19 +05:30
domainName = "blocky.rico1.labs.adtya.xyz";
2024-10-27 18:34:32 +05:30
in
{
2024-10-28 23:54:19 +05:30
imports = [
../../../shared/blocky.nix
];
2024-10-27 18:34:32 +05:30
services = {
caddy = {
virtualHosts."${domainName}" = {
2024-10-27 23:09:50 +05:30
inherit logFormat;
2024-10-27 18:34:32 +05:30
extraConfig = ''
2024-10-27 23:09:50 +05:30
${tlsAcmeDnsChallenge}
2024-10-27 18:34:32 +05:30
reverse_proxy 127.0.0.1:8080
'';
};
};
2024-10-28 23:54:19 +05:30
blocky.settings.ports = {
dns = "192.168.1.11:53,10.10.10.11:53";
tls = "192.168.1.11:853,10.10.10.11:853";
http = "127.0.0.1:8080";
2024-10-27 18:34:32 +05:30
};
};
}