Update reverse proxy configuration in docker.php

This commit is contained in:
Andras Bacsai 2024-03-12 13:01:15 +01:00
parent 4d181eef8e
commit a67576b447

View File

@ -236,7 +236,11 @@ function fqdnLabelsForCaddy(string $network, string $uuid, Collection $domains,
if ($serviceLabels) {
$labels->push("caddy_ingress_network={$uuid}");
$labels->push("caddy_{$loop}.reverse_proxy={{upstreams}}");
if ($port) {
$labels->push("caddy_{$loop}.reverse_proxy={{upstreams $port}}");
} else {
$labels->push("caddy_{$loop}.reverse_proxy={{upstreams}}");
}
} else {
$labels->push("caddy_ingress_network={$network}");
if ($port) {