Commit b4cea2f93bfb92648ce08c522a427b39a93c3927

Authored by blackfoks
1 parent 717faee7
Exists in master and in 1 other branch production

Add config example

config/config.example.yml
@@ -39,6 +39,13 @@ user_has_username: false @@ -39,6 +39,13 @@ user_has_username: false
39 # but you want to leave a short comment. 39 # but you want to leave a short comment.
40 allow_comments_with_issue_tracker: true 40 allow_comments_with_issue_tracker: true
41 41
  42 +# Enable Gravatar.
  43 +use_gravatar: false
  44 +# Default Gravatar size.
  45 +gravatar_size: 40
  46 +# Default Gravatar image, can be: mm, identicon, monsterid, wavatar, retro.
  47 +gravatar_default: identicon
  48 +
42 # Setup your deploy options for capistrano. 49 # Setup your deploy options for capistrano.
43 deployment: 50 deployment:
44 hosts: 51 hosts:
config/initializers/_load_config.rb
@@ -14,6 +14,10 @@ unless defined?(Errbit::Config) @@ -14,6 +14,10 @@ unless defined?(Errbit::Config)
14 Errbit::Config.user_has_username = ENV['ERRBIT_USER_HAS_USERNAME'] 14 Errbit::Config.user_has_username = ENV['ERRBIT_USER_HAS_USERNAME']
15 Errbit::Config.allow_comments_with_issue_tracker = ENV['ERRBIT_ALLOW_COMMENTS_WITH_ISSUE_TRACKER'] 15 Errbit::Config.allow_comments_with_issue_tracker = ENV['ERRBIT_ALLOW_COMMENTS_WITH_ISSUE_TRACKER']
16 16
  17 + Errbit::Config.use_gravatar = ENV['ERRBIT_USE_GRAVATAR']
  18 + Errbit::Config.gravatar_size = ENV['ERRBIT_GRAVATAR_SIZE']
  19 + Errbit::Config.gravatar_default = ENV['ERRBIT_GRAVATAR_DEFAULT']
  20 +
17 Errbit::Config.github_authentication = ENV['GITHUB_AUTHENTICATION'] 21 Errbit::Config.github_authentication = ENV['GITHUB_AUTHENTICATION']
18 Errbit::Config.github_client_id = ENV['GITHUB_CLIENT_ID'] 22 Errbit::Config.github_client_id = ENV['GITHUB_CLIENT_ID']
19 Errbit::Config.github_secret = ENV['GITHUB_SECRET'] 23 Errbit::Config.github_secret = ENV['GITHUB_SECRET']