Sha256: 5cf6f520fd846f467e6a2ec4b3b86461737e340f85fe16334f7a9e11788d3c7d

Contents?: true

Size: 1.94 KB

Versions: 10

Compression:

Stored size: 1.94 KB

Contents

#
# Customize this configuration file according to your environment.
#
Weeter.configure do |conf|

  # To log to STDOUT, don't specify anything.
  # To log to a specific path:
  # conf.log_path = '/tmp/weeter.log'
  # To disable logging:
  # conf.log_path = false

  conf.twitter do |twitter|
    # For basic auth
    # twitter.basic_auth = {:username => 'johnny', :password => 'secret'}

    # Or, for oauth
    twitter.oauth = {:consumer_key => ENV['WEETER_TWITTER_CONSUMER_KEY'],
                     :consumer_secret => ENV['WEETER_TWITTER_CONSUMER_SECRET'],
                     :access_key => ENV['WEETER_TWITTER_ACCESS_KEY'],
                     :access_secret => ENV['WEETER_TWITTER_ACCESS_SECRET']
                    }
  end

  conf.limiter do |limit|
    limit.enabled = true
    limit.max = 100
    limit.duration = 10.minutes
  end

  conf.client_app do |client_app|
    client_app.notification_plugin = :http
    client_app.oauth = {
        :consumer_key => ENV['WEETER_CLIENT_CONSUMER_KEY'],
        :consumer_secret => ENV['WEETER_CLIENT_CONSUMER_SECRET'],
        :access_key => ENV['WEETER_CLIENT_ACCESS_KEY'],
        :access_secret => ENV['WEETER_CLIENT_ACCESS_SECRET']
    }
    client_app.publish_url = ENV['WEETER_CLIENT_PUBLISH_URL']
    client_app.delete_url = ENV['WEETER_CLIENT_DELETE_URL']

    client_app.subscription_plugin = :http
    client_app.subscriptions_url = ENV['WEETER_CLIENT_SUBSCRIPTIONS_URL']
    client_app.subscription_updates_port = 7337 # only effective if running as a daemon
  end

  # Alternately...

  # conf.client_app do |client_app|
  #   client_app.notification_plugin = :resque
  #   client_app.queue = 'weeter'
  #   client_app.redis_uri = 'redis://redistogo:abcdef0123456789abcdef0123456789@somehost.redistogo.com:9052/'
  #
  #   client_app.subscription_plugin = :redis
  #   client_app.subscriptions_key = 'weeter:subscriptions'
  #   client_app.subscriptions_changed_channel = 'weeter:subscriptions_changed'
  # end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
weeter-0.19.4 weeter.conf.example
weeter-0.19.3 weeter.conf.example
weeter-0.19.2 weeter.conf.example
weeter-0.19.1 weeter.conf.example
weeter-0.19.0 weeter.conf.example
weeter-0.18.0 weeter.conf.example
weeter-0.17.0 weeter.conf.example
weeter-0.15.0 weeter.conf.example
weeter-0.14.0 weeter.conf.example
weeter-0.10.0 weeter.conf.example