forked from ooyala/barkeep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.rb
54 lines (43 loc) · 2.02 KB
/
environment.rb
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
DB_HOST = "localhost"
DB_PORT = 3306
DB_NAME = "barkeep"
DB_USER = "root"
DB_PASSWORD = ""
# These are the credentials of the email account that you want to send mail as.
MAIL_USER = ""
MAIL_DOMAIN = ""
# These settings are from the Pony documentation and work with Gmail's SMTP TLS server.
PONY_OPTIONS = {
:address => "smtp.gmail.com",
:port => "587",
:enable_starttls_auto => true,
:user_name => "#{MAIL_USER}@#{MAIL_DOMAIN}",
:password => "",
:authentication => :plain,
# the HELO domain provided by the client to the server
:domain => "localhost.localdomain"
}
REQUESTS_OUTGOING_ADDRESS = "#{MAIL_USER}+requests@#{MAIL_DOMAIN}"
COMMENTS_OUTGOING_ADDRESS = "#{MAIL_USER}+comments@#{MAIL_DOMAIN}"
COMMITS_OUTGOING_ADDRESS = "#{MAIL_USER}+commits@#{MAIL_DOMAIN}"
# This a list of paths to git repos we should watch.
REPOS_ROOT = "#{ENV["HOME"]}/barkeep_repos"
# This hostname is used to construct links in the commit emails.
BARKEEP_HOSTNAME = "localhost:8040"
REDIS_HOST = "localhost"
REDIS_PORT = 6379
# A comma-separate list of OpenID provider URLs for signing in your users.
# If you provide more than one, users will receive a UI allowing to pick which service to use to authenticate.
# Besides Google, another popular OpenID endpoint is https://me.yahoo.com
OPENID_PROVIDERS = "https://www.google.com/accounts/o8/ud"
# This is the read-only demo mode which is used in the Barkeep demo linked from getbarkeep.com.
# Most production deployments will not want to enable the demo mode, but we want it while developing.
ENABLE_READONLY_DEMO_MODE = true
# If specified, this will be used as the session secret in development mode.
# This prevents the session being cleared when sinatra reloads changes.
COOKIE_SESSION_SECRET = "AssimilationSuccessful"
# The number of resque workers to spawn
RESQUE_WORKERS = 2
# A comma-separated list of permitted users, to restrict access to barkeep. If unset, any user can log in
# via their Gmail account. This feature is a work in progress and not ready for general use; see #361.
PERMITTED_USERS = ""