rico0: https to blocky

This commit is contained in:
Adithya 2024-07-17 11:25:43 +05:30
parent 16143e92bb
commit 479f3c3da8
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -10,7 +10,16 @@ _: {
};
};
systemd.services.blocky.unitConfig.After = [ "network-online.target" "wireguard-wg0.service" ];
services.blocky = {
services = {
caddy = {
virtualHosts."blocky.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:8080
tls /persist/secrets/caddy/certs/blocky.crt /persist/secrets/caddy/certs/blocky.key
'';
};
};
blocky = {
enable = true;
settings = {
bootstrapDns = [ "tcp+udp:1.1.1.1" ];
@ -42,6 +51,7 @@ _: {
filterUnmappedTypes = true;
mapping = {
"frp.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"blocky.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"prometheus.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10";
"transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14";
};
@ -74,8 +84,7 @@ _: {
ports = {
dns = "192.168.1.10:53,10.10.10.10:53";
tls = "192.168.1.10:853,10.10.10.10:853";
https = "192.168.1.10:8443,10.10.10.10:8443";
http = "192.168.1.10:8080,10.10.10.10:8080";
http = "127.0.0.1:8080";
};
log = {
level = "warn";
@ -85,4 +94,5 @@ _: {
};
};
};
};
}