mirror of
https://github.com/Superredstone/nixos.git
synced 2026-08-19 11:48:57 +02:00
feat(bomba): add adguard
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
allowedTCPPorts = [
|
||||
22
|
||||
25
|
||||
53
|
||||
80
|
||||
143
|
||||
443
|
||||
@@ -17,6 +18,7 @@
|
||||
27015
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
53
|
||||
80
|
||||
443
|
||||
34197
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{ ... }:
|
||||
{
|
||||
services.adguardhome = {
|
||||
enable = true;
|
||||
port = 8017;
|
||||
mutableSettings = true;
|
||||
settings = {
|
||||
dns = {
|
||||
upstream_dns = [
|
||||
"1.1.1.1"
|
||||
"9.9.9.9"
|
||||
];
|
||||
bind_hosts = [ "192.168.1.223" ];
|
||||
port = 53;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -83,6 +83,10 @@
|
||||
"inventory.patrickcanal.it".extraConfig = ''
|
||||
reverse_proxy :${toString config.services.homebox.settings.HBOX_WEB_PORT}
|
||||
'';
|
||||
"adguard.patrickcanal.it".extraConfig = ''
|
||||
${basicAuth}
|
||||
reverse_proxy :${toString config.services.adguardhome.port}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{
|
||||
imports = [
|
||||
./actual.nix
|
||||
./adguard.nix
|
||||
./caddy.nix
|
||||
./fail2ban.nix
|
||||
./gitea.nix
|
||||
|
||||
Reference in New Issue
Block a user