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

Improve handling of wikiDomains and Allowed parameters #88

Merged
merged 1 commit into from
Sep 18, 2016

Conversation

paul90
Copy link
Member

@paul90 paul90 commented Sep 18, 2016

  • make wikiDomains and Allowed really optional
  • add warning if neither wikiDomains or Allowed are configured
  • add warning if using default security module (read-only)

* make wikiDomains and Allowed really optional
* add warning if neither wikiDomains or Allowed are configured
* add warning if using default security module (read-only)
@paul90
Copy link
Member Author

paul90 commented Sep 18, 2016

Part of a solution to #87, here we make the use of wikiDomains and allowed parameters truly optional.

@@ -25,9 +25,9 @@ module.exports = exports = (argv) ->
runningServers = []

if argv.allowed
allowedHosts = argv.allowed.split(',')
allowedHosts = _.split(argv.allowed, ',')
Copy link
Member

Choose a reason for hiding this comment

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

Just curious. Why the move away from native split?

Copy link
Member Author

Choose a reason for hiding this comment

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

The code was crashing, with the trace pointing to it as the problem.

@WardCunningham WardCunningham merged commit 4d39af1 into master Sep 18, 2016
@WardCunningham
Copy link
Member

Thanks for this. We are accumulating special cases but these seem necessary. The log notices are a welcome addition.

@paul90 paul90 deleted the paul90/opt-wikiDomain branch September 19, 2016 09:30
@paul90
Copy link
Member Author

paul90 commented Sep 19, 2016

Published as + wiki@0.10.1

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