From e8fe20ffcb02ea756c315351b23f0875b0a91d43 Mon Sep 17 00:00:00 2001 From: James Walker Date: Thu, 17 Nov 2022 22:40:13 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20traefik=20settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/plato/configuration.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/hosts/plato/configuration.nix b/hosts/plato/configuration.nix index a096960..9bcc6dd 100644 --- a/hosts/plato/configuration.nix +++ b/hosts/plato/configuration.nix @@ -109,7 +109,10 @@ enable = true; group = "docker"; staticConfigOptions = { - api = { }; + api = { + dashboard = true; + insecure = true; + }; certificatesResolvers = { myresolver = { acme = { @@ -124,11 +127,17 @@ entryPoints = { web = { address = ":80"; - + http = { + redirections = { + entryPoint = { + to = "websecure"; + scheme = "https"; + }; + }; + }; }; websecure = { address = ":443"; - }; }; providers = {