1
0
mirror of http://code.capytal.cc/dot013/spacestation.git synced 2026-01-15 23:46:13 -03:00

feat: local abaduh.local domain for local services

This commit is contained in:
Guz
2025-09-13 22:11:06 -03:00
parent dcd1885e73
commit fd874b6998

View File

@@ -10,6 +10,13 @@ in {
openFirewall = true;
port = 8753;
settings = {
http = {address = "127.0.0.1:${toString port}";};
filtering = {
rewrites = mapAttrsToList (domain: answer: {inherit domain answer;}) {
"abaduh.local" = "100.86.139.22";
"*.abaduh.local" = "100.86.139.22";
};
};
filters =
imap (id: url: {
enabled = true;
@@ -36,6 +43,13 @@ in {
};
};
services.caddy.virtualHosts."adguard.abaduh.local" = {
extraConfig = ''
reverse_proxy http://localhost:${toString cfg.port}
tls internal
'';
};
# Ports needed to access the DNS resolver
networking.firewall.allowedTCPPorts = [53];
networking.firewall.allowedUDPPorts = [53 51820];