also looking at this
feat: imgx integration — on-the-fly image transforms from query params
#2264
15 files
+1118
-16
| @@ -37,6 +37,7 @@ import { | ||
| 37 | 37 | import { createUpstreamPool, primaryUpstreamUrl, resolveUpstreamUrls, startHealthChecks, stopHealthChecks } from './load-balancer' |
| 38 | 38 | import type { UpstreamPool } from './load-balancer' |
| 39 | 39 | import { createProxyFetchHandler, createProxyWebSocketHandler } from './proxy-handler' |
| 40 | import { resolveImgx } from './imgx' | |
| 40 | 41 | import { readAcmeChallenge } from './acme-challenge' |
| 41 | 42 | import { buildHostRoutes, matchHostList, matchHostRoute, normalizePathPrefix } from './host-routes' |
| 42 | 43 | import type { HostRoutes } from './host-routes' |
| @@ -280,6 +281,7 @@ export function entryToRoute(entry: RegistryEntry): ProxyRoute { | ||
| 280 | 281 | return { |
| 281 | 282 | static: resolveStaticRoute(entry.static, cleanUrls), |
| 282 | 283 | cleanUrls, |
| 284 | imgx: resolveImgx(entry.imgx), | |
| 283 | 285 | basePath, |
| 284 | 286 | auth, |
| 285 | 287 | } |
| @@ -308,6 +310,7 @@ export function entryToRoute(entry: RegistryEntry): ProxyRoute { | ||
| 308 | 310 | upstreamPool: pool, |
| 309 | 311 | cleanUrls, |
| 310 | 312 | changeOrigin: entry.changeOrigin ?? false, |
| 313 | imgx: resolveImgx(entry.imgx), | |
| 311 | 314 | pathRewrites: entry.pathRewrites, |
| 312 | 315 | basePath, |
| 313 | 316 | auth, |