harness-drone/server
Matt Bostock 307aed12bc Move open registration setting into remote plugins
...so that it's possible to enable or disable open registration on a
per-remote basis.

For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.

The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.

This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.

Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
..
app fixed incorrect method for GetRepo in Drone client 2015-01-15 00:22:33 -08:00
blobstore moved sql-based Blobstore to the database package 2014-09-27 13:32:54 -07:00
capability Move open registration setting into remote plugins 2015-01-16 22:04:24 +00:00
datastore Insert and Update Users instead of generic Save function. Check ID != 0 2015-01-13 21:57:02 -08:00
handler Move open registration setting into remote plugins 2015-01-16 22:04:24 +00:00
middleware ability to handle options requests 2014-11-15 22:15:22 -08:00
pubsub prevent panic when replaying on closed channel 2014-11-10 21:13:18 -08:00
router Add feed route 2014-11-11 10:02:31 -06:00
session minor session refactoring in prep for upcoming changes discussed in #590 2014-10-19 22:45:32 -07:00
sync Allow sync manually, instead force sync at ever login 2014-10-28 19:51:54 +03:00
worker Merge remote-tracking branch 'upstream/master' 2014-12-30 10:58:59 -08:00
main.go Move open registration setting into remote plugins 2015-01-16 22:04:24 +00:00