[SOLVED] Local use without https

Ah, I think I found the problem. Remove the “HTTPS” environment variable, and add the variable INSECURE_COOKIE: true, which is what traeffik needs to work without HTTPS:

  #HTTPS: "external"
  INSECURE_COOKIE: true

If this resolves the issue, I think we could make it automatic by adding this to run.js and rebuilding the docker image:

Change to run.js
diff --git a/run.js b/run.js
index 62b8e99..dbdae97 100755
--- a/run.js
+++ b/run.js
@@ -74,6 +74,9 @@ function startTraefik() {
   if (process.env.HTTPS) {
     flags.push("--entrypoints.websecure.address=:443")
   }
+  if (!process.env.HTTPS) {
+    flags.push("--insecure-cookie")
+  }

   console.log("Calling traefik", flags);
   console.log(child_process.execSync('env', { encoding: 'utf-8' }));
2 Likes