@@ -54,16 +54,18 @@ services:
5454 - traefik.docker.network=traefik
5555
5656 # --- Traefik Router (backend) ---
57- - traefik.http.routers.getcloser-api.rule=Host(`${APP_HOST}`) && PathPrefix(`/api`) || Host(`${APP_HOST}`) && PathPrefix(`/docs`) || Host(`${APP_HOST}`) && PathPrefix(`/redoc`) || Host(`${APP_HOST}`) && PathPrefix(`/health`) || Host(`${APP_HOST}`) && Path(`/openapi.json`)
57+ # ๋ฐฑ์๋๋ก ๋ผ์ฐํ
๋๋ ๊ฒฝ๋ก:
58+ # - /api/* : API ์๋ํฌ์ธํธ (๋ฐฑ์๋์์ /api/v1/* ๋ก ๋ผ์ฐํ
)
59+ # - /docs, /redoc : Swagger UI ๋ฌธ์ (๋ฐฑ์๋์์ /docs, /redoc๋ก ๋ผ์ฐํ
)
60+ # - /health : ํฌ์ค์ฒดํฌ (๋ฐฑ์๋์์ /health๋ก ๋ผ์ฐํ
)
61+ # - /openapi.json : OpenAPI ์คํค๋ง (๋ฐฑ์๋์์ /openapi.json๋ก ๋ผ์ฐํ
)
62+ # ๋ฐฑ์๋์ /api ํ๋ฆฌํฝ์ค๊ฐ ํฌํจ๋์ด ์์ผ๋ฏ๋ก stripPrefix ๋ฏธ๋ค์จ์ด ์์ด ๊ทธ๋๋ก ์ ๋ฌ
63+ - traefik.http.routers.getcloser-api.rule=Host(`${APP_HOST}`) && (PathPrefix(`/api`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`) || PathPrefix(`/health`) || Path(`/openapi.json`))
5864 - traefik.http.routers.getcloser-api.entrypoints=websecure
5965 - traefik.http.routers.getcloser-api.tls=true
6066 - traefik.http.routers.getcloser-api.tls.certresolver=le
6167 - traefik.http.services.getcloser-api.loadbalancer.server.port=8000
6268
63- # /api ํ๋ฆฌํฝ์ค ์ ๊ฑฐ (๋ฐฑ์๋ ๋ด๋ถ๋ / ๊ธฐ์ค์ผ๋ก ๋์)
64- - traefik.http.middlewares.getcloser-stripapi.stripPrefix.prefixes=/api
65- - traefik.http.routers.getcloser-api.middlewares=getcloser-stripapi
66-
6769 # HTTP โ HTTPS ๋ฆฌ๋ค์ด๋ ํธ (backend)
6870 - traefik.http.routers.getcloser-api-http.rule=Host(`${APP_HOST}`) && PathPrefix(`/api`)
6971 - traefik.http.routers.getcloser-api-http.entrypoints=web
0 commit comments