Server: replace dnsmasq cnames with headscale extra dns records

This commit is contained in:
Toast 2024-11-03 01:18:39 +01:00
parent c7d2db076b
commit 0e66939ab1
4 changed files with 35 additions and 10 deletions

View file

@ -39,8 +39,14 @@
AmbientCapabilities = "CAP_CHOWN CAP_FOWNER";
};
# Add a cname for syncthing
services.dnsmasq.settings.cname = ["sync.everest.tailscale,everest"];
# Add a record for syncthing
services.headscale.settings.dns_config.extra_records = [
{
name = "sync.everest.tailscale";
type = "A";
value = "100.100.0.1";
}
];
# Set up caddy as the reverse proxy for syncthing
services.caddy.virtualHosts.syncthing = {