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

generate-config subcommand for the main binary #428

Open
aumetra opened this issue Nov 25, 2023 · 0 comments
Open

generate-config subcommand for the main binary #428

aumetra opened this issue Nov 25, 2023 · 0 comments

Comments

@aumetra
Copy link
Member

aumetra commented Nov 25, 2023

This would start a small interactive questionaire about the basic configuration of the instance.
Such as "What's the domain?", "Do you use TLS?", "What's the instance name?", "What's the database URL?", etc. and then generates a functional configuration based on an Askama template embedded into the binary.

To ensure the configuration is valid, we should take our configuration and add a JSON schema check (or just deserialize a freshly generated configuration against the most up-to-date struct).

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