Skip to content

Commit

Permalink
fix(release): download page https redirect (erigontech#7120)
Browse files Browse the repository at this point in the history
Updated initial traefik config so the http -> https redirect on
download.erigon.sh will work.
  • Loading branch information
revitteth authored and calmbeing committed Apr 24, 2023
1 parent 22b6ee8 commit 7140ea2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cmd/release/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- "--certificatesresolvers.letsencrypt.acme.email=max.revitt@gateway.fm"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--middlewares.redirectscheme.scheme=https"
ports:
- "80:80"
- "443:443"
Expand All @@ -27,12 +28,15 @@ services:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.frontend.rule=Host:download.erigon.ch"
- "traefik.frontend.redirect.entryPoint=https"
- "traefik.http.routers.app.rule=Host(`download.erigon.ch`)"
- "traefik.http.routers.app.entrypoints=web,websecure"
- "traefik.http.routers.app.tls=true"
- "traefik.http.routers.app.tls.certresolver=letsencrypt"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=true"
- "traefik.http.routers.app-insecure.rule=Host(`download.erigon.ch`)"
- "traefik.http.routers.app-insecure.entrypoints=web"
- "traefik.http.routers.app-insecure.middlewares=redirect-to-https"
- "traefik.http.routers.app-secure.rule=Host(`download.erigon.ch`)"
- "traefik.http.routers.app-secure.entrypoints=websecure"
- "traefik.http.routers.app-secure.tls=true"
- "traefik.http.routers.app-secure.tls.certresolver=letsencrypt"
- "traefik.http.services.app.loadbalancer.server.port=80"
networks:
- traefik
Expand Down
2 changes: 2 additions & 0 deletions cmd/release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"sort"
"strings"
"time"

"github.com/hashicorp/go-version"
)

type Binary struct {
Expand Down

0 comments on commit 7140ea2

Please sign in to comment.