mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
Update reverse proxy configuration in docker.php
This commit is contained in:
@@ -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}");
|
||||||
|
if ($port) {
|
||||||
|
$labels->push("caddy_{$loop}.reverse_proxy={{upstreams $port}}");
|
||||||
|
} else {
|
||||||
$labels->push("caddy_{$loop}.reverse_proxy={{upstreams}}");
|
$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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user