gault-millau/project/settings/production.py
2019-11-04 16:13:47 +03:00

43 lines
1.0 KiB
Python

"""Production settings."""
from .base import *
from .amazon_s3 import *
# Booking API configuration
GUESTONLINE_SERVICE = 'https://api.guestonline.fr/'
GUESTONLINE_TOKEN = ''
LASTABLE_SERVICE = ''
LASTABLE_TOKEN = ''
LASTABLE_PROXY = ''
ALLOWED_HOSTS = ['api.gaultmillau.com', '95.213.204.126', '0.0.0.0']
CSRF_TRUSTED_ORIGINS = ['.next.gaultmillau.com', ]
SEND_SMS = False
SMS_CODE_SHOW = True
USE_CELERY = True
SCHEMA_URI = 'https'
DEFAULT_SUBDOMAIN = 'www'
SITE_DOMAIN_URI = 'next.gaultmillau.com'
DOMAIN_URI = 'next.gaultmillau.com'
# ELASTICSEARCH SETTINGS
ELASTICSEARCH_DSL = {
'default': {
'hosts': 'elasticsearch'
}
}
ELASTICSEARCH_INDEX_NAMES = {
'search_indexes.documents.news': 'prod_news', # temporarily disabled
'search_indexes.documents.establishment': 'prod_establishment',
}
# TMP ( TODO remove it later)
# Временный хардкод для демонстрации 4 ноября, потом удалить!
HARDCODED_INTERNATIONAL_NEWS_IDS = [8, 9, 10, 11, 15, 17]