Private connection working with traefik

This commit is contained in:
Owen
2026-08-06 17:22:01 -04:00
parent 22f2990f56
commit 184e1425a4
3 changed files with 6 additions and 3 deletions
@@ -1696,7 +1696,7 @@ export async function getTraefikConfig(
const srKey = `inference-sr${sr.siteResourceId}`;
const routerName = `${srKey}-router`;
const serviceName = `${srKey}-service`;
const rule = `Host(\`${fullDomain}\`) && ClientIP(${exitNode.address})`; // restrict to coming from the exit node ip range that the client is connected to
const rule = `Host(\`${fullDomain}\`) && ClientIP(\`${exitNode.address}\`)`; // restrict to coming from the exit node ip range that the client is connected to
let tls: any = {};
if (!privateConfig.getRawPrivateConfig().flags.use_pangolin_dns) {
+1 -1
View File
@@ -273,7 +273,7 @@ async function resolveTarget(host: string): Promise<ResolvedTarget | null> {
.from(siteResources)
.where(
and(
eq(siteResources.alias, host),
eq(siteResources.fullDomain, host),
eq(siteResources.mode, "inference"),
eq(siteResources.enabled, true)
)
+4 -1
View File
@@ -421,7 +421,10 @@ export default function PrivateResourcesTable({
/>
);
}
if (resourceRow.mode === "http") {
if (
resourceRow.mode === "http" ||
resourceRow.mode === "inference"
) {
const domainId = resourceRow.domainId;
const fullDomain = resourceRow.fullDomain;
const url = `${resourceRow.ssl ? "https" : "http"}://${fullDomain}`;