-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add defaults to config cheatsheet, and minor language cleanup. #3290
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3290 +/- ##
==========================================
+ Coverage 34.67% 34.86% +0.19%
==========================================
Files 278 278
Lines 40506 40506
==========================================
+ Hits 14044 14124 +80
+ Misses 24395 24298 -97
- Partials 2067 2084 +17
Continue to review full report at Codecov.
|
- `WHITELISTED_URIS`: Space separated list of POSIX regexp patterns. If non empty OpenID URIs should match any of these to be granted access. | ||
- `BLACKLISTED_URIS`: Space separated list of POSIX regexp pattenrs. OpenID URI matching any of these is refused access. | ||
- `ENABLE_OPENID_SIGNIN`: **false**: Allow authentication in via OpenID. | ||
- `ENABLE_OPENID_SIGNUP`: **! DISABLE\_REGISTRATION**: Allow registering via OpenID. |
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.
here the exclamation mark has nothing to do with the importance of knowing what you're doing. Rather it's negating the DISABLE_REGISTRATION
setting. I'm mentioning becuase I found it weird to read that meaning of the mark at the top of the file
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 think it might make the most sense to remove the use of :exclamation:
since it's only used for two settings, and the mark doesn't actually render anyway. Those two options can easily have a small note added about not fiddling with them.
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.
you didn't get it: it's nothing about the risk in fiddling with them. Exclamation mark only means NEGATING the value of the following value. So ENABLE_OPENID_SIGNUP
is FALSE when DISABLE_REGISTRATION
is TRUE and vice-versa.
- `ENABLE_OPENID_SIGNIN`: **false**: Allow authentication in via OpenID. | ||
- `ENABLE_OPENID_SIGNUP`: **! DISABLE\_REGISTRATION**: Allow registering via OpenID. | ||
- `WHITELISTED_URIS`: **\<none\>**: If non-empty, list of POSIX regex patterns matching OpenID URI's to permit. | ||
- `BLACKLISTED_URIS`: **\<none\>**: If non-empty, list of POSIX regex pattenrs matching OpenID URI's to block. |
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.
also if empty, would be the empty list.... This is different from WHITELISTED_URL
in that an empty list would NOT mean to allow NOBODY but rather to allow ALL.
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.
Is this just a problem with using the <none>
? Would it be better to s/none/empty/?
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.
It's a problem with the wording If non-empty
, which is not needed for BLACKLISTED_URIS
. There's no difference in behavior when the value is EMPTY. Also please mind the typos
- `LEVEL`: General log level, default is `Trace`. | ||
- `ROOT_PATH`: **\<none\>**: Root path for log files. | ||
- `MODE`: **console**: Logging mode. For multiple modes, use a comma to separate values. | ||
- `LEVEL`: **Trace**: General log level. |
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.
allowed levels are ?
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.
thanks for the effort, if you can improve the spots I commented about will LGTM :)
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.
Still LGTM beside nitpicking :)
@@ -84,12 +82,12 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. | |||
- `DISABLE_ROUTER_LOG`: **false**: Mutes printing of the router log. | |||
- `CERT_FILE`: **custom/https/cert.pem**: Cert file path used for HTTPS. | |||
- `KEY_FILE`: **custom/https/key.pem**: Key file path used for HTTPS. | |||
- `STATIC_ROOT_PATH`: **./**Upper level of template and static files path. | |||
- `STATIC_ROOT_PATH`: **./**: Upper level of template and static files path. |
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.
it would be useful to specify what .
is relative to, in this case. Directory containing executable file ? Directory from which the command was run ?
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.
Same nitpicks as @strk, but LGTM otherwise
This change adds a default setting to each configuration option present in the cheat sheet. It also cleans up some of the language and grammar.