forked from gousiosg/github-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml.tmpl
67 lines (55 loc) · 2.05 KB
/
config.yaml.tmpl
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
amqp:
host: 127.0.0.1 # Queue's IP address
port: 5672
username: github # Username to connect to the queue
password: github # password
exchange: github
# Number of messages to retrieve from the queue. On very busy queues,
# this should be increased, to decrease the load on the queue.
prefetch: 1
sql:
# Configuration URL for the SQL database subsystem.
# Examples:
# - MySQL: mysql2://user:password@host/github
# - Postgres: postgres://user:password@host/github
#
# On JRuby, you can use the JDBC-mysql driver that comes with JRuby
# jdbc:mysql://localhost/github?user=github&password=github
#
# see http://sequel.rubyforge.org/rdoc/files/doc/opening_databases_rdoc.html
# for details
url: sqlite://github.db
mirror:
urlbase: "https://api.github.com/"
persister: mongo #or noop
# How many pages of historical content to retrieve when doing multi-page
# API calls.
history_pages_back: 5
# On a machine with multiple IP addresses, select the one to send the
# HTTP requests from.
# attach_ip: 0.0.0.0
# Github credentials to use for requests. If the value is not set,
# no authentication information will be sent as part of the request.
username: user
passwd: password
# Use either a user name/password or an API key
#token: a valid github API key
# Number of reqs/hour to do with the provided key
req_limit: 4990
# User agent to use for requests. You must use a unique name per client program
user_agent: ghtorrent
# Time to wait between geo location API requests
geoloc_wait: 2
mongo:
host: 127.0.0.1 # Mongo's IP addr
port: 27017 # Mongo's port
db: github # DB name to store commits to
username: github # User name to connect to Mongo
password: github # Password for mongo
logging:
# A unique string to appear in all messages produced by the invoking program.
uniq: "ghtorrent"
# debug < info < warn < error, for decreasing log output
level: "info"
# stdout or stderr to log to system streams. A file name to log to this file.
file: "stdout"