From 5f4cf05fc770ac96462eddd75090037711120b67 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sat, 11 Oct 2014 14:57:14 -0700 Subject: [PATCH] moving default Drone configuration to TOML files --- debian/drone/DEBIAN/conffiles | 2 +- debian/drone/etc/default/drone | 49 ---------------------- debian/drone/etc/drone/drone.toml | 69 +++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 50 deletions(-) delete mode 100644 debian/drone/etc/default/drone create mode 100644 debian/drone/etc/drone/drone.toml diff --git a/debian/drone/DEBIAN/conffiles b/debian/drone/DEBIAN/conffiles index fb1baab8..980d34ea 100644 --- a/debian/drone/DEBIAN/conffiles +++ b/debian/drone/DEBIAN/conffiles @@ -1,2 +1,2 @@ /etc/init/drone.conf -/etc/default/drone +/etc/drone/drone.toml diff --git a/debian/drone/etc/default/drone b/debian/drone/etc/default/drone deleted file mode 100644 index b0ce4b7d..00000000 --- a/debian/drone/etc/default/drone +++ /dev/null @@ -1,49 +0,0 @@ -# Upstart configuration file for droned. - -# Command line options: -# -# -datasource="drone.sqlite": -# -driver="sqlite3": -# -bind=":8080": -# -workers="4": -# -#DRONED_OPTS="--bind=:80" - -# Email configuration -#DRONE_SMTP_HOST= -#DRONE_SMTP_PORT= -#DRONE_SMTP_FROM= -#DRONE_SMTP_USER= -#DRONE_SMTP_PASS= - -# GitHub configuration -#DRONE_GITHUB_CLIENT= -#DRONE_GITHUB_SECRET= - -# GitHub Enterprise configuration -#DRONE_GITHUB_ENTERPRISE_CLIENT= -#DRONE_GITHUB_ENTERPRISE_SECRET= -#DRONE_GITHUB_ENTERPRISE_URL= -#DRONE_GITHUB_ENTERPRISE_API= -#DRONE_GITHUB_ENTERPRISE_PRIVATE_MODE=false - -# GitLab configuration -#DRONE_GITLAB_URL= - -# Atlassian Bitbucket configuration -#DRONE_BITBUCKET_CLIENT= -#DRONE_BITBUCKET_SECRET= - -# Atlassian Stash configuration -#DRONE_STASH_CLIENT= -#DRONE_STASH_SECRET= -#DRONE_STASH_URL= -#DRONE_STASH_API= - -# Optional global configuration options. -# -# This allows you, for example, to set a default Hipchat token -# so that you don't need to specify in each .drone.yml file. -#DRONE_HIPCHAT_TOKEN= -#DRONE_SLACK_TOKEN= -#DRONE_ZAPIER_TOKEN= \ No newline at end of file diff --git a/debian/drone/etc/drone/drone.toml b/debian/drone/etc/drone/drone.toml new file mode 100644 index 00000000..a5628cf6 --- /dev/null +++ b/debian/drone/etc/drone/drone.toml @@ -0,0 +1,69 @@ + +[server] +port=":80" + +##################################################################### +# SSL configuration for Drone. Provide you key and cert chain +# to server Drone over https. +# +# [server.ssl] +# key="" +# cert="" + + +##################################################################### +# Database configuration for Drone, by default using SQLite3. +# You can also use postgres and mysql. See the documentation +# for more details. + +[database] +driver="sqlite3" +source="/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="" + +# [github_enterprise] +# client="" +# secret="" +# api="" +# url="" +# private_mode=false + +# [bitbucket] +# client="" +# secret="" + +# [gitlab] +# url="" + + +##################################################################### +# SMTP configuration for Drone. This is required if you plan +# to send email notifications for build statuses. +# +# [smtp] +# host="" +# port="" +# from="" +# user="" +# pass="" + +# [worker] +# nodes=[ +# "unix:///var/run/docker.sock", +# "unix:///var/run/docker.sock" +# ] \ No newline at end of file