mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
8fa473b07a
Allow the GitHub and GitHub Enterprise remotes to restrict who can login based on a user's organisation membership. This can be used as a safe addition to open registration and also ensures that access is revoked when a user is subsequently removed from the org. The default is not to restrict at all.
82 lines
1.4 KiB
TOML
82 lines
1.4 KiB
TOML
|
|
[server]
|
|
port=":80"
|
|
|
|
#####################################################################
|
|
# SSL configuration
|
|
#
|
|
# [server.ssl]
|
|
# key=""
|
|
# cert=""
|
|
|
|
# [session]
|
|
# secret=""
|
|
# expires=""
|
|
|
|
#####################################################################
|
|
# Database configuration, by default using SQLite3.
|
|
# You can also use postgres and mysql. See the documentation
|
|
# for more details.
|
|
|
|
[database]
|
|
driver="sqlite3"
|
|
datasource="/var/lib/drone/drone.sqlite"
|
|
|
|
|
|
#####################################################################
|
|
# Open Registration allows users to self-register for Drone.
|
|
# This is recommended if Drone is being hosted behind a
|
|
# firewall.
|
|
#
|
|
# When false, the system admin will need to manually add
|
|
# users to Drone through the admin screens.
|
|
#
|
|
# [registration]
|
|
# open=true
|
|
|
|
# [github]
|
|
# client=""
|
|
# secret=""
|
|
# orgs=[]
|
|
|
|
# [github_enterprise]
|
|
# client=""
|
|
# secret=""
|
|
# api=""
|
|
# url=""
|
|
# orgs=[]
|
|
# private_mode=false
|
|
|
|
# [bitbucket]
|
|
# client=""
|
|
# secret=""
|
|
|
|
# [gitlab]
|
|
# url=""
|
|
# skip_verify=false
|
|
|
|
# [gogs]
|
|
# url=""
|
|
# secret=""
|
|
|
|
#####################################################################
|
|
# SMTP configuration for Drone. This is required if you plan
|
|
# to send email notifications for build statuses.
|
|
#
|
|
# [smtp]
|
|
# host=""
|
|
# port=""
|
|
# from=""
|
|
# user=""
|
|
# pass=""
|
|
|
|
# [docker]
|
|
# cert=""
|
|
# key=""
|
|
|
|
# [worker]
|
|
# nodes=[
|
|
# "unix:///var/run/docker.sock",
|
|
# "unix:///var/run/docker.sock"
|
|
# ]
|