|
@@ -69,6 +69,7 @@ if 'DATABASE_URL' in os.environ:
|
|
if url.scheme == 'mysql':
|
|
if url.scheme == 'mysql':
|
|
DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
|
|
DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
|
|
|
|
|
|
|
|
+EMAIL_SUBJECT_PREFIX = '[Sentry] '
|
|
|
|
|
|
# Local time zone for this installation. Choices can be found here:
|
|
# Local time zone for this installation. Choices can be found here:
|
|
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
|
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
|
@@ -227,6 +228,16 @@ SOCIAL_AUTH_PIPELINE = (
|
|
|
|
|
|
SOCIAL_AUTH_CREATE_USERS = True
|
|
SOCIAL_AUTH_CREATE_USERS = True
|
|
|
|
|
|
|
|
+# Auth engines and the settings required for them to be listed
|
|
|
|
+AUTH_PROVIDERS = {
|
|
|
|
+ 'twitter': ('TWITTER_CONSUMER_KEY', 'TWITTER_CONSUMER_SECRET'),
|
|
|
|
+ 'facebook': ('FACEBOOK_APP_ID', 'FACEBOOK_API_SECRET'),
|
|
|
|
+ 'github': ('GITHUB_APP_ID', 'GITHUB_API_SECRET'),
|
|
|
|
+ 'google': ('GOOGLE_OAUTH2_CLIENT_ID', 'GOOGLE_OAUTH2_CLIENT_SECRET'),
|
|
|
|
+ 'trello': ('TRELLO_API_KEY', 'TRELLO_API_SECRET'),
|
|
|
|
+ 'bitbucket': ('BITBUCKET_CONSUMER_KEY', 'BITBUCKET_CONSUMER_SECRET'),
|
|
|
|
+}
|
|
|
|
+
|
|
import random
|
|
import random
|
|
|
|
|
|
SOCIAL_AUTH_DEFAULT_USERNAME = lambda: random.choice(['Darth Vader', 'Obi-Wan Kenobi', 'R2-D2', 'C-3PO', 'Yoda'])
|
|
SOCIAL_AUTH_DEFAULT_USERNAME = lambda: random.choice(['Darth Vader', 'Obi-Wan Kenobi', 'R2-D2', 'C-3PO', 'Yoda'])
|
|
@@ -261,15 +272,6 @@ CELERY_QUEUES = (
|
|
Queue('update', routing_key='update'),
|
|
Queue('update', routing_key='update'),
|
|
)
|
|
)
|
|
|
|
|
|
-
|
|
|
|
-# Sentry and Raven configuration
|
|
|
|
-
|
|
|
|
-SENTRY_PUBLIC = False
|
|
|
|
-SENTRY_PROJECT = 1
|
|
|
|
-SENTRY_CACHE_BACKEND = 'default'
|
|
|
|
-
|
|
|
|
-EMAIL_SUBJECT_PREFIX = '[Sentry] '
|
|
|
|
-
|
|
|
|
# Disable South in tests as it is sending incorrect create signals
|
|
# Disable South in tests as it is sending incorrect create signals
|
|
SOUTH_TESTS_MIGRATE = True
|
|
SOUTH_TESTS_MIGRATE = True
|
|
|
|
|
|
@@ -399,6 +401,115 @@ if os.path.exists(NPM_ROOT):
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+# Sentry and Raven configuration
|
|
|
|
+
|
|
|
|
+SENTRY_PUBLIC = False
|
|
|
|
+SENTRY_PROJECT = 1
|
|
|
|
+SENTRY_CACHE_BACKEND = 'default'
|
|
|
|
+
|
|
|
|
+SENTRY_FILTERS = (
|
|
|
|
+ 'sentry.filters.StatusFilter',
|
|
|
|
+)
|
|
|
|
+
|
|
|
|
+SENTRY_KEY = None
|
|
|
|
+
|
|
|
|
+# Absolute URL to the sentry root directory. Should not include a trailing slash.
|
|
|
|
+SENTRY_URL_PREFIX = ''
|
|
|
|
+
|
|
|
|
+# Allow access to Sentry without authentication.
|
|
|
|
+SENTRY_PUBLIC = False
|
|
|
|
+
|
|
|
|
+# Login url (defaults to LOGIN_URL)
|
|
|
|
+SENTRY_LOGIN_URL = None
|
|
|
|
+
|
|
|
|
+# Default project ID (for internal errors)
|
|
|
|
+SENTRY_PROJECT = 1
|
|
|
|
+
|
|
|
|
+# Only store a portion of all messages per unique group.
|
|
|
|
+SENTRY_SAMPLE_DATA = True
|
|
|
|
+
|
|
|
|
+# The following values control the sampling rates
|
|
|
|
+SENTRY_SAMPLE_RATES = (
|
|
|
|
+ (50, 1),
|
|
|
|
+ (1000, 2),
|
|
|
|
+ (10000, 10),
|
|
|
|
+ (100000, 50),
|
|
|
|
+ (1000000, 300),
|
|
|
|
+ (10000000, 2000),
|
|
|
|
+)
|
|
|
|
+SENTRY_MAX_SAMPLE_RATE = 10000
|
|
|
|
+SENTRY_SAMPLE_TIMES = (
|
|
|
|
+ (3600, 1),
|
|
|
|
+ (360, 10),
|
|
|
|
+ (60, 60),
|
|
|
|
+)
|
|
|
|
+SENTRY_MAX_SAMPLE_TIME = 10000
|
|
|
|
+
|
|
|
|
+# Web Service
|
|
|
|
+SENTRY_WEB_HOST = 'localhost'
|
|
|
|
+SENTRY_WEB_PORT = 9000
|
|
|
|
+SENTRY_WEB_OPTIONS = {
|
|
|
|
+ 'workers': 3,
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# UDP Service
|
|
|
|
+SENTRY_UDP_HOST = 'localhost'
|
|
|
|
+SENTRY_UDP_PORT = 9001
|
|
|
|
+
|
|
|
|
+# Queue (Kombu)
|
|
|
|
+SENTRY_QUEUE = {
|
|
|
|
+ 'transport': 'kombu.transport.django.Transport',
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# Should users without 'sentry.add_project' permissions be allowed
|
|
|
|
+# to create new projects
|
|
|
|
+SENTRY_ALLOW_PROJECT_CREATION = False
|
|
|
|
+
|
|
|
|
+# Should users without 'sentry.add_team' permissions be allowed
|
|
|
|
+# to create new projects
|
|
|
|
+SENTRY_ALLOW_TEAM_CREATION = False
|
|
|
|
+
|
|
|
|
+# Should users without superuser permissions be allowed to
|
|
|
|
+# make projects public
|
|
|
|
+SENTRY_ALLOW_PUBLIC_PROJECTS = True
|
|
|
|
+
|
|
|
|
+# Should users be allowed to register an account? If this is disabled
|
|
|
|
+# accounts can only be created when someone is invited or added
|
|
|
|
+# manually.
|
|
|
|
+SENTRY_ALLOW_REGISTRATION = True
|
|
|
|
+
|
|
|
|
+# Instructs Sentry to utilize it's internal search indexer on all incoming
|
|
|
|
+# events..
|
|
|
|
+SENTRY_USE_SEARCH = True
|
|
|
|
+
|
|
|
|
+# Enable trend results. These can be expensive and are calculated in real-time.
|
|
|
|
+# When disabled they will be replaced w/ a default priority sort.
|
|
|
|
+SENTRY_USE_TRENDING = True
|
|
|
|
+
|
|
|
|
+# Default to not sending the Access-Control-Allow-Origin header on api/store
|
|
|
|
+SENTRY_ALLOW_ORIGIN = None
|
|
|
|
+
|
|
|
|
+# Enable scraping of javascript context for source code
|
|
|
|
+SENTRY_SCRAPE_JAVASCRIPT_CONTEXT = True
|
|
|
|
+
|
|
|
|
+# Redis connection information (see Nydus documentation)
|
|
|
|
+SENTRY_REDIS_OPTIONS = {}
|
|
|
|
+
|
|
|
|
+# Buffer backend to use
|
|
|
|
+SENTRY_BUFFER = 'sentry.buffer.Buffer'
|
|
|
|
+SENTRY_BUFFER_OPTIONS = {}
|
|
|
|
+
|
|
|
|
+SENTRY_RAVEN_JS_URL = 'd3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js'
|
|
|
|
+
|
|
|
|
+# URI Prefixes for generating DSN URLs
|
|
|
|
+# (Defaults to URL_PREFIX by default)
|
|
|
|
+SENTRY_ENDPOINT = None
|
|
|
|
+SENTRY_PUBLIC_ENDPOINT = None
|
|
|
|
+
|
|
|
|
+# Early draft features. Not slated or public release yet.
|
|
|
|
+SENTRY_ENABLE_EXPLORE_CODE = False
|
|
|
|
+SENTRY_ENABLE_EXPLORE_USERS = False
|
|
|
|
+
|
|
# Configure celery
|
|
# Configure celery
|
|
import djcelery
|
|
import djcelery
|
|
djcelery.setup_loader()
|
|
djcelery.setup_loader()
|