mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00

* master: (1171 commits) Fixing repeating friend finding check in both intro and friends dialog. Saving references to visible feeds when reading by folder. Major refactor of ios feed list. No longer relies on fragile locations dictionary. No more error messages on deploying new celery/gunicorn. Also adding NUMA cancellation support to mongo db server. Fixing ios classifiers in river view. Adding beta search (only titles and authors for now) for staff only. Updating enterprise distribution ipa. Fixing crash when mis-counting feeds. Correcting height of font popover on iphone. Adding horizontal bounce to story page control. Doubling resync likelihood. Clearing out old read stories for 1% of all feed fetches with new stories. Adding unread cutoff to redis sync. Syncing redis keys by feed_id for read stories. Adding a sync all redis for user stories to be run in a migration. Turning off deletion of old stories until the db can be prepped. Adding index for read story deletion. Deleting old stories. Typo in delete read stories log. Typo in delete read stories log. Typo in delete read stories log. Deleting old user stories again. This time going out to 5 times the unread bounds. ... Conflicts: local_settings.py.template settings.py
109 lines
2.4 KiB
Text
109 lines
2.4 KiB
Text
import logging
|
|
import pymongo
|
|
|
|
# ===================
|
|
# = Server Settings =
|
|
# ===================
|
|
|
|
ADMINS = (
|
|
('Samuel Clay', 'samuel@newsblur.com'),
|
|
)
|
|
|
|
SERVER_EMAIL = 'server@newsblur.com'
|
|
HELLO_EMAIL = 'hello@newsblur.com'
|
|
NEWSBLUR_URL = 'http://www.newsblur.com'
|
|
SESSION_COOKIE_DOMAIN = '.localhost'
|
|
|
|
# ===================
|
|
# = Global Settings =
|
|
# ===================
|
|
|
|
DEBUG = True
|
|
DEBUG_ASSETS = DEBUG
|
|
MEDIA_URL = '/media/'
|
|
SECRET_KEY = 'YOUR SECRET KEY'
|
|
|
|
CACHE_BACKEND = 'dummy:///'
|
|
# CACHE_BACKEND = 'locmem:///'
|
|
# CACHE_BACKEND = 'memcached://127.0.0.1:11211'
|
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
|
|
|
# Set this to the username that is shown on the homepage to unauthenticated users.
|
|
HOMEPAGE_USERNAME = 'popular'
|
|
|
|
# Google Reader OAuth API Keys
|
|
OAUTH_KEY = 'www.example.com'
|
|
OAUTH_SECRET = 'SECRET_KEY_FROM_GOOGLE'
|
|
|
|
S3_ACCESS_KEY = 'XXX'
|
|
S3_SECRET = 'SECRET'
|
|
S3_BACKUP_BUCKET = 'newsblur_backups'
|
|
S3_PAGES_BUCKET_NAME = 'pages-XXX.newsblur.com'
|
|
S3_ICONS_BUCKET_NAME = 'icons-XXX.newsblur.com'
|
|
|
|
STRIPE_SECRET = "YOUR-SECRET-API-KEY"
|
|
STRIPE_PUBLISHABLE = "YOUR-PUBLISHABLE-API-KEY"
|
|
|
|
# ===============
|
|
# = Social APIs =
|
|
# ===============
|
|
|
|
FACEBOOK_APP_ID = '111111111111111'
|
|
FACEBOOK_SECRET = '99999999999999999999999999999999'
|
|
TWITTER_CONSUMER_KEY = 'ooooooooooooooooooooo'
|
|
TWITTER_CONSUMER_SECRET = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
|
|
|
# =============
|
|
# = Databases =
|
|
# =============
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'NAME': 'newsblur',
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
'USER': 'newsblur',
|
|
'PASSWORD': '',
|
|
'HOST': '127.0.0.1',
|
|
},
|
|
}
|
|
|
|
MONGO_DB = {
|
|
'name': 'newsblur',
|
|
'host': '127.0.0.1',
|
|
'port': 27017
|
|
}
|
|
|
|
MONGODB_SLAVE = {
|
|
'host': '127.0.0.1'
|
|
}
|
|
|
|
# Celery RabbitMQ/Redis Broker
|
|
BROKER_URL = "redis://127.0.0.1:6379/0"
|
|
CELERY_RESULT_BACKEND = BROKER_URL
|
|
|
|
REDIS = {
|
|
'host': '127.0.0.1',
|
|
}
|
|
|
|
ELASTICSEARCH_HOSTS = ['127.0.0.1:9200']
|
|
|
|
BACKED_BY_AWS = {
|
|
'pages_on_s3': False,
|
|
'icons_on_s3': False,
|
|
}
|
|
|
|
# ===========
|
|
# = Logging =
|
|
# ===========
|
|
|
|
# Logging (setup for development)
|
|
LOG_TO_STREAM = True
|
|
|
|
if len(logging._handlerList) < 1:
|
|
LOG_FILE = '~/newsblur/logs/development.log'
|
|
logging.basicConfig(level=logging.DEBUG,
|
|
format='%(asctime)-12s: %(message)s',
|
|
datefmt='%b %d %H:%M:%S',
|
|
handler=logging.StreamHandler)
|
|
|