From c558e1dbdbf7fad3424f14cac3b99ff7e191fb23 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 1 Apr 2024 22:53:56 -0300 Subject: [PATCH] Ditch DISABLE_HTTPS_REDIRECT --- .env.sample | 5 ----- traefik.yml.tmpl | 6 ------ 2 files changed, 11 deletions(-) diff --git a/.env.sample b/.env.sample index 0c11c44..b524da2 100644 --- a/.env.sample +++ b/.env.sample @@ -135,8 +135,3 @@ COMPOSE_FILE="compose.yml" # NOTE(3wc): as of 2024-04-01 only the `icecast` recipe uses this #COMPOSE_FILE="$COMPOSE_FILE:compose.web-alt.yml" #WEB_ALT_ENABLED=1 - -##################################################################### -# Extremely insecure options, do not use # -##################################################################### -#DISABLE_HTTPS_REDIRECT=1 diff --git a/traefik.yml.tmpl b/traefik.yml.tmpl index 1dd5def..3f6aeab 100644 --- a/traefik.yml.tmpl +++ b/traefik.yml.tmpl @@ -24,12 +24,6 @@ api: entrypoints: web: address: ":80" - {{ if not (eq (env "DISABLE_HTTPS_REDIRECT") "1") }} - http: - redirections: - entryPoint: - to: web-secure - {{ end }} web-secure: address: ":443" {{ if eq (env "GITEA_SSH_ENABLED") "1" }}