Add config for taiga-back.

This commit is contained in:
Ralph Bean 2015-06-16 15:24:22 +00:00
parent e5a9a815ae
commit 145a4f3608
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,40 @@
from .common import *
MEDIA_URL = "http://209.132.184.50/media/"
STATIC_URL = "http://209.132.184.50/static/"
ADMIN_MEDIA_PREFIX = "http://209.132.184.50/static/admin/"
SITES["front"]["scheme"] = "http"
SITES["front"]["domain"] = "209.132.184.50"
SECRET_KEY = "{{ taiga_secret_key }}"
DEBUG = False
TEMPLATE_DEBUG = False
PUBLIC_REGISTER_ENABLED = True
DEFAULT_FROM_EMAIL = "no-reply@example.com"
SERVER_EMAIL = DEFAULT_FROM_EMAIL
INSTALLED_APPS += ["taiga_contrib_fas_openid_auth"]
# We monkey patch the rest_framework exception handler to allow us to do
# the 303 redirects that we need to do for openid to finish.
REST_FRAMEWORK['EXCEPTION_HANDLER'] = "taiga_contrib_fas_openid_auth.services.exception_handler"
EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend"
EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://taiga:{{ taiga_events_password }}@localhost:5672/taiga"}
from .celery import *
BROKER_URL = 'amqp://guest:guest@localhost:5672//'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_ENABLED = True
# Uncomment and populate with proper connection parameters
# for enable email sending.
#EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
#EMAIL_USE_TLS = False
#EMAIL_HOST = "localhost"
#EMAIL_HOST_USER = ""
#EMAIL_HOST_PASSWORD = ""
#EMAIL_PORT = 25