-
Notifications
You must be signed in to change notification settings - Fork 301
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
Self-Registration config #20
base: master
Are you sure you want to change the base?
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.
Great changes, just some quick questions.
@@ -173,6 +174,9 @@ | |||
/etc/nginx/ssl/""" + hostname + """.crt; # Wildcard SSL certificate | |||
/etc/nginx/ssl/""" + hostname + """.key; # Wildcard SSL key | |||
|
|||
Note: by default self-registration is enabled. You can disable this by changing the 'self_registration' option in the config file to |
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.
Question about this, wouldn't setting this to a no
still make it enabled? no
is a string which should be True-ish in Python right: if not settings['self_registration']:
. Let me know if I'm missing something!
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.
Yeah I would have thought so too, but it seems to work just fine. Yaml is a bit weird (I've never used it before personally), and I think PyYAML converts "yes/no" into Booleans (see https://stackoverflow.com/questions/36463531/pyyaml-automatically-converting-certain-keys-to-boolean-values).
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 to work :P
¯\_(ツ)_/¯
bump |
Added configuration option to enable/disable self-registration (requires restart of both api and gui servers).
Reconfigured API and GUI servers to listen only on localhost, rather than 0.0.0.0. (Nginx handles the app proxying to these servers anyway so there's no reason for them to be publicly accessible.)
Added some other entries to gitignore.