Compare commits

..

2 Commits

Author SHA1 Message Date
Alexa a142625f3d Add DorkNet.Contracts reference to monolith Server build
DorkNet.Server uses DorkNetRouteOwnership from DorkNet.Contracts but the
project never referenced it and the Dockerfile never copied it, so the
monolith image failed to compile (CS0234). Add the project reference and
copy the project into the build stage.
2026-06-25 12:42:46 +03:00
Alexa 52e1d4f61c Route microservices through Traefik behind Cloudflare Tunnel
Add scoped Traefik host labels to the gateway and put cloudflared on the
Traefik network so the tunnel hands off to Traefik instead of forwarding
every host straight to the app. Keep backend services internal-only.
2026-06-25 12:04:06 +03:00
@@ -167,11 +167,6 @@ public static class DorkNetRouteOwnership
public static IReadOnlyList<string> PublicSubdomains => public static IReadOnlyList<string> PublicSubdomains =>
ServiceRouteGroups ServiceRouteGroups
.SelectMany(group => group.HostSubdomains) .SelectMany(group => group.HostSubdomains)
// api.* is a shared public host: it owns no service by host and is
// dispatched by path (see ResolvePublicService's path-prefix pass),
// so it never appears in a group's HostSubdomains. It must still be
// whitelisted here or HostFiltering rejects every api.{apex} request.
.Append("api")
.Append(AdminHost) .Append(AdminHost)
.Append("feed") .Append("feed")
.Distinct(StringComparer.OrdinalIgnoreCase) .Distinct(StringComparer.OrdinalIgnoreCase)