mirror of
https://github.com/umputun/reproxy.git
synced 2025-11-23 22:04:57 +02:00
reproxy.port to enable container
This commit is contained in:
@@ -126,6 +126,11 @@ func (d *Docker) List() ([]discovery.URLMapper, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// should not set anything, handled on matchedPort level. just use to enable implicitly
|
||||||
|
if _, ok := c.Labels["reproxy.port"]; ok {
|
||||||
|
enabled = true
|
||||||
|
}
|
||||||
|
|
||||||
if !enabled {
|
if !enabled {
|
||||||
log.Printf("[DEBUG] container %s disabled", c.Name)
|
log.Printf("[DEBUG] container %s disabled", c.Name)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user