-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml.example
More file actions
96 lines (80 loc) · 3.24 KB
/
config.yml.example
File metadata and controls
96 lines (80 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
gitmdf:
# The directory where gitdub keeps its per-repository state.
directory: .gitdub
# Bind to all addresses by default.
bind: 0.0.0.0
# The TCP port to listen on.
port: 8888
# SSL options. Relative paths names have to be specified relative to the
# above directory.
ssl:
enable: false
cert: /path/to/gitdub.crt
key: /path/to/gitdub.key
# Enable debugging. This prints the contents of the HTTP POST body to STDERR.
debug: false
# Only process POST requests from the these IP addresses (optioanl). If empty
# or not set, gitdub processes requests from all addresses.
#
# Gitdub automatically adds GitHub and BitBucket server IPs to allowed_sources.
# Github: https://api.github.com/meta
# Bitbucket: https://ip-ranges.atlassian.com
#
# allowed_sources: [207.97.227.253, 50.57.128.197, 108.171.174.178]
#
allowed_sources: []
# Block requests from specific domains.
blacklist_domains: []
# Flag that determines whether the first arriving data results in sending
# emails. If false, gitdub sends out an email for every single commit since
# the repository creation. If true, the first arriving data only marks all
# existing commits as emailed without actually sending a notice.
silent_init: true
# The interval in seconds of how often to check the file for modifications.
# If the modification time of the configuration file is new than the time it
# was read last, gitdub re-reads all configuration values except for bind,
# port, and ssl.
monitor: 0
# The timespan in seconds for recorded commits in a sliding window, used for
# de-duplicating the requests.
commit_record_timespan: 1800
account:
# App password or access token with permission to read repositories
bitbucket:
user: PUT_USER_NAME_HERE
token: PUT_APP_PASSWORD_HERE
github:
user: PUT_USER_NAME_HERE
token: PUT_ACCESS_TOKEN_HERE
notifier:
# The email sender. (Can be overriden for each repository.)
from: gitdub
# The list of email receivers. (Can be overriden for each repository.)
to: [user1@host.com, user2@host.com]
# The email subject prefix. (Can be overriden for each repository.)
subject: '[git]'
# The github configuration. Each entry represents either a single repository or
# all repositories for a given user/organization name.
github:
# A basic entry specifying settings for a single repository.
- id: mavam/gitdub
protocol: ssh # Allowed protocols: git (default), ssh, https
to: [vallentin@icir.org]
subject: '[git/gitdub]'
# Optional customization of repository URI displayed in email body.
uri: ssh://git.gitdub.info/real-repo.git
# A wildcard entry that specifies settings for all repositories of a user or
# organization.
#- id: mavam/.*
# subject: '[foo]'
# to: [vallentin@icir.org]
# The bitbucket configuration. Each entry represents either a single repository
# or all repositories for a given user/organization name.
bitbucket:
# A basic entry specifying settings for a single repository.
- id: yuhc/webhook-test
protocol: ssh # Allowed protocols: git (default), ssh, https
to: [hyu@cs.utexas.edu]
subject: '[git/webhook-test]'
# Optional customization of repository URI displayed in email body.
uri: git@bitbucket.org:yuhc/webhook-test.git