fix: strip /movies-api prefix so FastAPI routes match
This commit is contained in:
1 parent
39176e3a9c
commit
7a078319a6
1 file changed
+2
-1
+2
-1
@@ -27,8 +27,9 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.middlewares.gzip.compress=true
|
- traefik.http.middlewares.gzip.compress=true
|
||||||
|
- traefik.http.middlewares.mymovies-strip.stripprefix.prefixes=/movies-api
|
||||||
- 'traefik.http.routers.mymovies-api.entryPoints=https'
|
- 'traefik.http.routers.mymovies-api.entryPoints=https'
|
||||||
- traefik.http.routers.mymovies-api.middlewares=gzip,mymovies-auth
|
- traefik.http.routers.mymovies-api.middlewares=gzip,mymovies-auth,mymovies-strip
|
||||||
- 'traefik.http.routers.mymovies-api.rule=Host(`movies-lmp-18.dynv6.net`) && PathPrefix(`/movies-api`)'
|
- 'traefik.http.routers.mymovies-api.rule=Host(`movies-lmp-18.dynv6.net`) && PathPrefix(`/movies-api`)'
|
||||||
- traefik.http.routers.mymovies-api.tls.certresolver=letsencrypt
|
- traefik.http.routers.mymovies-api.tls.certresolver=letsencrypt
|
||||||
- traefik.http.routers.mymovies-api.tls=true
|
- traefik.http.routers.mymovies-api.tls=true
|
||||||
|
|||||||
Reference in new issue
Block a user