caddy, adguard and nixos conf update

This commit is contained in:
Pavel 2026-02-25 14:51:20 +03:00
parent 2921c9b302
commit 6615996956
3 changed files with 26 additions and 1 deletions

View File

@ -41,6 +41,12 @@
LC_TELEPHONE = "ru_RU.UTF-8"; LC_TELEPHONE = "ru_RU.UTF-8";
LC_TIME = "ru_RU.UTF-8"; LC_TIME = "ru_RU.UTF-8";
}; };
# My Services
services.caddy.enable = true;
services.caddy.configFile = "/opt/homelab/services/caddy/Caddyfile";
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
@ -159,7 +165,8 @@
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [22]; networking.firewall.allowedTCPPorts = [22 80 443 53 ];
networking.firewall.allowedUDPPorts = [ 53 ];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;

View File

@ -0,0 +1,11 @@
services:
adguardhome:
image: adguard/adguardhome:latest
container_name: adguardhome
restart: unless-stopped
network_mode: "host"
volumes:
- /srv/adguard/work:/opt/adguardhome/work
- /srv/adguard/conf:/opt/adguardhome/conf

7
services/caddy/Caddyfile Normal file
View File

@ -0,0 +1,7 @@
http://adguard.lan {
reverse_proxy 127.0.0.1:3000
}
http://192.168.1.47 {
respond "i am working, master"
}