pgjones / hypercorn

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
MIT License
1.18k stars 105 forks source link

Can we have a default config filename? #260

Open yrro opened 1 month ago

yrro commented 1 month ago

With gunicorn I find it convenient to create a gunicorn.conf.py file which contains all the settings needed to run my app (the module/factory for the application, see #229). That way, I can run my app by simply launching gunicorn, which will load all the necessary settings from gunicorn.conf.py.

With hypercorn, there doesn't seem to be a default for the config file, so I always have to run hypercorn -c hypercorn.toml which is less convenient to type. It would nice if hypercorn defaulted to reading hypercorn.toml out of the current directory if it exists.