Skip to content

feat: Make TrustedHostMiddleware configurable via ALLOWED_HOSTS env var #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

joshuajcoronado
Copy link
Contributor

  • Added support for configuring allowed hosts dynamically using the ALLOWED_HOSTS environment variable.
  • Fallback to a default list of allowed hosts: ["gitingest.com", "*.gitingest.com", "gitdigest.dev", "localhost"]
  • Ensures compatibility with custom deployments while maintaining existing defaults.
  • Updated src/main.py to implement the changes.
  • Updates README.md on usage

@cyclotruc
Copy link
Member

Perfect, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants