Skip to content

Conversation

@daclouds
Copy link
Collaborator

๐Ÿ“ PR ํƒ€์ž…

  • ๋ฒ„๊ทธ ์ˆ˜์ • (fix)
  • ์‹ ๊ทœ ๊ธฐ๋Šฅ (feat)
  • ๋ฌธ์„œ ์—…๋ฐ์ดํŠธ (docs)
  • ์ฝ”๋“œ ์Šคํƒ€์ผ / ํฌ๋งทํŒ… (style)
  • ๋ฆฌํŒฉํ† ๋ง (refactor)
  • ํ…Œ์ŠคํŠธ (test)
  • ๊ธฐํƒ€ (chore, ci ๋“ฑ)

๐Ÿ“œ ์„ค๋ช…

FastAPI isn't configured for SSL termination behind a reverse proxy. The application likely generates HTTP URLs or redirects because it perceives HTTP requests from Traefik.

์—ฎ์ธ ์ด์Šˆ

  • Closes #

๐Ÿ”จ ์ž‘์—… ๋‚ด์šฉ

  • Add TrustedHostMiddleware to inform FastAPI to trust proxy headers like X-Forwarded-Proto, and set root_path="/api" in the FastAPI constructor to ensure correct URL generation when behind Traefik's /api prefix.

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท


๐Ÿง‘โ€๐Ÿ’ป ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ


๐Ÿ“… ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • ์ดํ•ดํ•˜๊ธฐ ์–ด๋ ค์šด ๋ถ€๋ถ„์— ์ฃผ์„์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ๊ด€๋ จ๋œ ๋ฌธ์„œ๋ฅผ ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants