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

Self-Registration config #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

swarley7
Copy link

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.

Copy link
Owner

@mandatoryprogrammer mandatoryprogrammer left a 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

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!

Copy link
Author

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).

Copy link
Author

@swarley7 swarley7 Aug 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work :P
¯\_(ツ)_/¯

@swarley7
Copy link
Author

bump

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

Successfully merging this pull request may close these issues.

2 participants