Skip to content
Snippets Groups Projects
Commit 45b13f5a authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix portainer and hub router config

parent 41326fe3
No related branches found
Tags v3.0.6
1 merge request!9Merging develop into main
Pipeline #783461 passed
......@@ -329,12 +329,10 @@ class Traefik {
$config['services']['traefik']['labels'][] = 'traefik.http.routers.traefik.tls=true';
$config['services']['traefik']['labels'][] = 'traefik.http.routers.traefik.tls.certresolver=lakedrops';
if ($this->addon_portainer) {
$config['services']['portainer']['labels'][] = 'traefik.http.routers.traefik.tls=true';
$config['services']['portainer']['labels'][] = 'traefik.http.routers.traefik.tls.certresolver=lakedrops';
}
if ($this->hub_token) {
$config['services']['hub-agent']['labels'][] = 'traefik.http.routers.traefik.tls=true';
$config['services']['hub-agent']['labels'][] = 'traefik.http.routers.traefik.tls.certresolver=lakedrops';
$config['services']['portainer']['labels'][] = 'traefik.http.routers.frontend.tls=true';
$config['services']['portainer']['labels'][] = 'traefik.http.routers.frontend.tls.certresolver=lakedrops';
$config['services']['portainer']['labels'][] = 'traefik.http.routers.edge.tls=true';
$config['services']['portainer']['labels'][] = 'traefik.http.routers.edge.tls.certresolver=lakedrops';
}
if ($this->dns_challenge && $this->dns_challenge_provider !== '') {
$config['services']['traefik']['command'][] = '--certificatesresolvers.lakedrops.acme.dnschallenge=true';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment