mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
chore: moved wireguard config
This commit is contained in:
parent
973297a2a8
commit
e98394d757
13 changed files with 412 additions and 88 deletions
|
|
@ -123,14 +123,20 @@ in
|
|||
enable = true;
|
||||
networks."10-enp" = {
|
||||
matchConfig.Name = "enp0s4";
|
||||
|
||||
# Option 1: Static IP (recommended if you need consistent IP for reverse proxy)
|
||||
addresses = [ { Address = "${service.interface.ip}/24"; } ];
|
||||
routes = [
|
||||
{
|
||||
Destination = "${localhost}/0";
|
||||
Gateway = service.interface.gate;
|
||||
Destination = "0.0.0.0/0";
|
||||
Gateway = "192.168.50.1"; # Your LAN gateway - adjust if different
|
||||
}
|
||||
];
|
||||
dns = [ service.interface.gate ];
|
||||
dns = [ "192.168.50.1" ]; # Your LAN DNS - adjust if different
|
||||
|
||||
# Option 2: DHCP (uncomment below and comment out above if preferred)
|
||||
# Note: You'll need to update the Caddy reverse_proxy IP or use hostname
|
||||
# networkConfig.DHCP = "yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue