Separete container and proxy config

This commit is contained in:
Yan Lin 2025-09-08 20:37:50 +02:00
parent 84d2323250
commit 782b3ef4bf
9 changed files with 579 additions and 543 deletions

View file

@ -63,32 +63,8 @@
};
};
# Dynamic configuration for services not running in containers
dynamicConfigOptions = {
http = {
routers = {
syncthing = {
rule = "Host(`syncthing.${config.networking.hostName}.yanlincs.com`)";
service = "syncthing";
tls = {
certResolver = "cloudflare";
domains = [{
main = "*.${config.networking.hostName}.yanlincs.com";
}];
};
};
};
services = {
syncthing = {
loadBalancer = {
servers = [{
url = "http://localhost:8384";
}];
};
};
};
};
};
# Dynamic configuration is now defined in host-specific proxy.nix files
# and will be merged with this base configuration
# Environment variables for Cloudflare
environmentFiles = [ "/run/secrets/traefik-env" ];