From b35b4b7b963e07df19c7f14c54b4a89351abd5d2 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Thu, 4 Dec 2025 14:36:21 +0000 Subject: [PATCH] Image proxy, listen on $PORT --- pkg/image_proxy/lib/image_proxy_service.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/image_proxy/lib/image_proxy_service.dart b/pkg/image_proxy/lib/image_proxy_service.dart index 9c71bad8a..4f1c8a92e 100644 --- a/pkg/image_proxy/lib/image_proxy_service.dart +++ b/pkg/image_proxy/lib/image_proxy_service.dart @@ -311,7 +311,12 @@ void main(List args) async { final server = await serve( handler, InternetAddress.anyIPv6, - int.tryParse(Platform.environment['IMAGE_PROXY_PORT'] ?? '') ?? 80, + int.tryParse( + Platform.environment['IMAGE_PROXY_PORT'] ?? + Platform.environment['PORT'] ?? + '', + ) ?? + 8080, ); print('Serving image proxy on ${server.address}:${server.port}'); }