-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow specifying configuration params in env vars #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we already broke cli backwards compatibility in #81, could we consider removing --allow-client-id
as a command line argument? If we're treating it as a credential then we shouldn't encourage passing it this way.
assert_eq!(*matches.get_one::<i64>("snapshot-days").unwrap(), 13i64); | ||
assert_eq!(*matches.get_one::<u32>("snapshot-versions").unwrap(), 20u32); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems odd that these end up with such different types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember if I had a reason for that, but I don't think it's too important.
README.md
Outdated
|
||
By default, the server allows all client IDs. To limit the accepted client IDs, | ||
such as when running a personal server, use `--allow-client-id <client-id>`. | ||
This value can be specified in the environment variable `CLIENT_ID`, as a | ||
comma-separated list of client IDs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be nice to mention that the client id should be treated as a credential since it may not be obvious that the client id is the only authentication.
I mentioned it in the README. But, I don't think this is a critical distinction in a lot of deployments, which are running on a VPS or some other sort of single-user system. |
Fixes #73.
This updates the docker-compose to use the new format as well.