Separete container and proxy config
This commit is contained in:
parent
84d2323250
commit
782b3ef4bf
9 changed files with 579 additions and 543 deletions
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue