granian icon indicating copy to clipboard operation
granian copied to clipboard

Support file-based configuration

Open MaddyGuthridge opened this issue 5 months ago • 2 comments

It'd be excellent if all of Granian's configuration options could be stored in a file (eg JSON, YAML or preferably TOML). Generally, I much prefer file-based configuration as it allows for documentation of the settings chosen for a particular project within the settings themselves.

MaddyGuthridge avatar Jun 10 '25 11:06 MaddyGuthridge

It's great to be able to configure granian through files like Gunicorn

zhu0629 avatar Sep 10 '25 06:09 zhu0629

Agreed, we're migrating from gunicorn and the Python-based gunicorn configuration lets us configure our startup hooks in that file... I don't see any way to do that with Granian short of creating our own Granian instance.

beaugunderson avatar Sep 19 '25 22:09 beaugunderson