Update reverse proxy configuration in docker.php
This commit is contained in:
parent
4d181eef8e
commit
a67576b447
@ -236,7 +236,11 @@ function fqdnLabelsForCaddy(string $network, string $uuid, Collection $domains,
|
|||||||
|
|
||||||
if ($serviceLabels) {
|
if ($serviceLabels) {
|
||||||
$labels->push("caddy_ingress_network={$uuid}");
|
$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 {
|
} else {
|
||||||
$labels->push("caddy_ingress_network={$network}");
|
$labels->push("caddy_ingress_network={$network}");
|
||||||
if ($port) {
|
if ($port) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user