adguard
This commit is contained in:
parent
07d1194d90
commit
70228cc485
|
@ -30,8 +30,8 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
alacritty
|
alacritty
|
||||||
autotiling
|
autotiling
|
||||||
brave
|
|
||||||
blueberry
|
blueberry
|
||||||
|
brave
|
||||||
brightnessctl
|
brightnessctl
|
||||||
feh
|
feh
|
||||||
flameshot
|
flameshot
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
from = 3000;
|
from = 3000;
|
||||||
to = 3100;
|
to = 3100;
|
||||||
}];
|
}];
|
||||||
firewall.allowedTCPPorts = [ 80 443 5432 3306 3478 ];
|
firewall.allowedTCPPorts = [ 53 80 443 5432 3306 3478 ];
|
||||||
firewall.allowedUDPPorts = [ 51820 ];
|
firewall.allowedUDPPorts = [ 53 51820 ];
|
||||||
firewall.allowedUDPPortRanges = [{
|
firewall.allowedUDPPortRanges = [{
|
||||||
from = 3478;
|
from = 3478;
|
||||||
to = 3481;
|
to = 3481;
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
services.adguardhome = {
|
||||||
|
enable = true;
|
||||||
|
mutableSettings = true;
|
||||||
|
settings.bind_port = 3008;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, outputs, ... }: {
|
{ config, outputs, ... }: {
|
||||||
virtualisation.oci-containers.containers."wireguard" = {
|
virtualisation.oci-containers.containers."wireguard" = {
|
||||||
image = "weejewel/wg-easy";
|
image = "weejewel/wg-easy";
|
||||||
environment = { WG_HOST = "wg.lanakk.com"; };
|
environment = { WG_HOST = "wg.lanakk.com"; WG_DEFAULT_DNS = "10.88.0.1"; };
|
||||||
ports = [ "3007:51821/tcp" "51820:51820/udp" ];
|
ports = [ "3007:51821/tcp" "51820:51820/udp" ];
|
||||||
volumes = [ "wireguard_data:/etc/wireguard" ];
|
volumes = [ "wireguard_data:/etc/wireguard" ];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./adguard.nix
|
||||||
./container.nix
|
./container.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./invidious.nix
|
./invidious.nix
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
nextcloud.loadBalancer.servers = [{ url = "http://localhost:3005/"; }];
|
nextcloud.loadBalancer.servers = [{ url = "http://localhost:3005/"; }];
|
||||||
invidious.loadBalancer.servers = [{ url = "http://localhost:3006/"; }];
|
invidious.loadBalancer.servers = [{ url = "http://localhost:3006/"; }];
|
||||||
wireguard.loadBalancer.servers = [{ url = "http://localhost:3007/"; }];
|
wireguard.loadBalancer.servers = [{ url = "http://localhost:3007/"; }];
|
||||||
|
adguard.loadBalancer.servers = [{ url = "http://localhost:3008/"; }];
|
||||||
};
|
};
|
||||||
routers = {
|
routers = {
|
||||||
api = {
|
api = {
|
||||||
|
@ -139,6 +140,16 @@
|
||||||
middlewares = "auth";
|
middlewares = "auth";
|
||||||
entrypoints = "websecure";
|
entrypoints = "websecure";
|
||||||
};
|
};
|
||||||
|
adguard = {
|
||||||
|
rule = "Host(`ab.lanakk.com`)";
|
||||||
|
tls = {
|
||||||
|
certResolver = "godaddy";
|
||||||
|
domains = "ab.lanakk.com";
|
||||||
|
};
|
||||||
|
service = "adguard";
|
||||||
|
middlewares = "auth";
|
||||||
|
entrypoints = "websecure";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue