Skip to content
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

feat: configure hypercorn with environment variables #249

Open
caerulescens opened this issue Aug 19, 2024 · 1 comment
Open

feat: configure hypercorn with environment variables #249

caerulescens opened this issue Aug 19, 2024 · 1 comment

Comments

@caerulescens
Copy link

I checked the documentation, issues, and pull requests, but I didn't see any configuration options available for environment variables. The norm is to use environment variables (dotenv files) for configuring ASGI applications on Kubernetes.

uvicorn implements this with UVICORN_ prefix with all the same names used for each configuration option; see here. I think the same could work for hypercorn by using the prefix HYPERCORN_.

@caerulescens
Copy link
Author

caerulescens commented Aug 19, 2024

See here for granian environment variable configuration too, which uses GRANIAN_ prefix.

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

No branches or pull requests

1 participant