diff --git a/auth/.env.example b/auth/.env.example index 5f5195d6..39220724 100644 --- a/auth/.env.example +++ b/auth/.env.example @@ -1,9 +1,6 @@ # vi: ft=sh # shellcheck disable=SC2034 -# http route prefix (will listen to $KEIBI_PREFIX/users for example) -KEIBI_PREFIX="" - # path of the private key used to sign jwts. If this is empty, a new one will be generated on startup RSA_PRIVATE_KEY_PATH="" diff --git a/auth/config.go b/auth/config.go index 776b1a27..37f9a65a 100644 --- a/auth/config.go +++ b/auth/config.go @@ -22,7 +22,6 @@ import ( ) type Configuration struct { - Prefix string JwtPrivateKey *rsa.PrivateKey JwtPublicKey *rsa.PublicKey JwtKid string @@ -47,7 +46,6 @@ func LoadConfiguration(db *dbc.Queries) (*Configuration, error) { ret := DefaultConfig ret.PublicUrl = os.Getenv("PUBLIC_URL") - ret.Prefix = os.Getenv("KEIBI_PREFIX") claims := os.Getenv("EXTRA_CLAIMS") if claims != "" { diff --git a/auth/main.go b/auth/main.go index 96f106b2..4360df5c 100644 --- a/auth/main.go +++ b/auth/main.go @@ -228,8 +228,8 @@ func main() { } h.config = conf - g := e.Group(conf.Prefix) - r := e.Group(conf.Prefix) + g := e.Group("/auth") + r := e.Group("/auth") r.Use(h.TokenToJwt) r.Use(echojwt.WithConfig(echojwt.Config{ SigningMethod: "RS256", diff --git a/docker-compose.build.yml b/docker-compose.build.yml index b3ad1082..87fceeb6 100644 --- a/docker-compose.build.yml +++ b/docker-compose.build.yml @@ -66,8 +66,6 @@ services: condition: service_healthy env_file: - ./.env - environment: - - KEIBI_PREFIX=/auth labels: - "traefik.enable=true" - "traefik.http.routers.auth.rule=PathPrefix(`/auth/`)"