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

* master: (66 commits) Too many stories? Don't animate transitions when switching intelligence levels. Fixing typo in iphone app that preventing mark folder as read when the visible stories option was showing. Updating the mongo db copy util to also look for updated stories. Globals.is_staff on user, not profile. Make the stats referesh every minute instead of every 10 minutes for staff. Fixing offsets in river of news. Adding ciphering to usernames in log, so I can finally take screenshots of the most colorful logs of all time. Adding my very special mongo serialization backup utility to get around the damn unrepairable mongo database. This is taking 14 hours to run. Auto-refreshing feedback (1 min for staff, 10 min for everybody). Fixing exception around multiple feeds during Google Reader import process. Also switching rate limit to status code 429. Adding Nokia MeeGo client to user agents. Only show raw feeds in feed autocomplete. Handling iphone version for new users on ios app. FIXING THE WORST BUG OF MY LIFE -- finally figured out what was causing the story-shows-as-unread bug. Also fixed enclosures on certain types of feeds. Fixing menu manage open position to compensate for additional menu items. Reducing the amount of work done by feed fetching when there are no new stories. Fixing emergency bug around trimming feeds where the cursor is changing. Dammit mongo. Simplifying ufw ports in fabfile. Adding env.user. Launching the iPhone app on the front-page. Big deal. Minor cleanup of river stories view. Cleaning up mongoengine imports and settings for default MongoDB. ... Conflicts: local_settings.py.template
92 lines
1.9 KiB
Text
92 lines
1.9 KiB
Text
import logging
|
|
import pymongo
|
|
|
|
# ===================
|
|
# = Server Settings =
|
|
# ===================
|
|
|
|
ADMINS = (
|
|
('Samuel Clay', 'samuel@ofbrooklyn.com'),
|
|
)
|
|
|
|
SERVER_EMAIL = 'server@newsblur.com'
|
|
HELLO_EMAIL = 'hello@newsblur.com'
|
|
NEWSBLUR_URL = 'http://www.newsblur.com'
|
|
|
|
# ==================
|
|
# = Global Settngs =
|
|
# ==================
|
|
|
|
DEBUG = True
|
|
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 = 'conesus'
|
|
|
|
# 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'
|
|
|
|
# =============
|
|
# = 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 Broker
|
|
BROKER_HOST = "127.0.0.1"
|
|
|
|
REDIS = {
|
|
'host': '127.0.0.1',
|
|
}
|
|
|
|
# AMQP - RabbitMQ server
|
|
BROKER_HOST = "db01.newsblur.com"
|
|
BROKER_PORT = 5672
|
|
BROKER_USER = "newsblur"
|
|
BROKER_PASSWORD = "newsblur"
|
|
BROKER_VHOST = "newsblurvhost"
|
|
|
|
|
|
# ===========
|
|
# = 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)
|