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 = [
|
allowedTCPPorts = [
|
||||||
22
|
22
|
||||||
25
|
25
|
||||||
|
53
|
||||||
80
|
80
|
||||||
143
|
143
|
||||||
443
|
443
|
||||||
@@ -17,6 +18,7 @@
|
|||||||
27015
|
27015
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
|
53
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
34197
|
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 = ''
|
"inventory.patrickcanal.it".extraConfig = ''
|
||||||
reverse_proxy :${toString config.services.homebox.settings.HBOX_WEB_PORT}
|
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 = [
|
imports = [
|
||||||
./actual.nix
|
./actual.nix
|
||||||
|
./adguard.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
./fail2ban.nix
|
./fail2ban.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user