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

composer/library/docker-traefik#4 Add dupport for portainer

parent 024ac6ad
No related branches found
Tags v3.1.2
No related merge requests found
......@@ -49,6 +49,7 @@ class Handler extends BaseHandler {
'ports' => $this->env->receive('traefik_ports', '', '8443'),
'cert' => $this->env->receive('traefik_cert', '', 'fullchain.pem'),
'key' => $this->env->receive('traefik_key', '', 'privkey.pem'),
'portainer' => 0,
],
'live' => [
'root' => '',
......@@ -305,6 +306,9 @@ class Handler extends BaseHandler {
$this->config->readValue(['traefik', 'cert']),
$this->config->readValue(['traefik', 'key'])
);
if ((bool) $this->config->readValue(['traefik', 'portainer'])) {
$traefik->setAddonPortainer(TRUE);
}
$traefik->update($rewrite);
}
......
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