{ config, ... }: { # Traefik dynamic configuration for vps host services.traefik.dynamicConfigOptions = { http = { routers = { # Photo service (Immich) photo = { rule = "Host(`photo.yanlincs.com`)"; service = "photo"; tls = { certResolver = "cloudflare"; domains = [{ main = "*.yanlincs.com"; }]; }; }; }; services = { # Photo service backend photo = { loadBalancer = { servers = [{ url = "http://thinkpad.yanlincs.com:5000"; }]; }; }; }; }; }; }