Skip to content

Commit b35b4b7

Browse files
committed
Image proxy, listen on $PORT
1 parent 35f01fb commit b35b4b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/image_proxy/lib/image_proxy_service.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,12 @@ void main(List<String> args) async {
311311
final server = await serve(
312312
handler,
313313
InternetAddress.anyIPv6,
314-
int.tryParse(Platform.environment['IMAGE_PROXY_PORT'] ?? '') ?? 80,
314+
int.tryParse(
315+
Platform.environment['IMAGE_PROXY_PORT'] ??
316+
Platform.environment['PORT'] ??
317+
'',
318+
) ??
319+
8080,
315320
);
316321
print('Serving image proxy on ${server.address}:${server.port}');
317322
}

0 commit comments

Comments
 (0)