thingspeak/config/initializers/constants.rb

30 lines
801 B
Ruby
Raw Normal View History

2011-03-27 22:56:15 +02:00
# allow updates via HTTP GET by setting this to true;
# set to false to only allow updates via HTTP POST
2011-10-16 08:54:31 +02:00
GET_SUPPORT = true
# rate limit channel updates
RATE_LIMIT = false
# number of seconds to wait before a channel can be updated again
RATE_LIMIT_FREQUENCY = '15'
# main production server to handle all requests (can be a proxy)
APPLICATION_IP_ADDRESS = '127.0.0.1'
# domain for the API
API_DOMAIN = 'http://127.0.0.1:3000/'
# get api key from HTTP headers if this value is present
HTTP_HEADER_API_KEY_NAME = 'THINGSPEAKAPIKEY'
# Twitter api credentials
CONSUMER_KEY = ''
CONSUMER_SECRET = ''
# reset password base url
RESET_PASSWORD_URL = 'http://127.0.0.1:3000//users/reset_password/'
2011-10-16 08:54:31 +02:00
# allow only these additional locales (use downcase, easier to parse)
ALLOWED_LOCALES = ['pt-br','it']