mirror of
https://github.com/daniviga/bite.git
synced 2024-12-24 09:11:25 +01:00
Daniele Viganò
8e5a407b28
* Add mqtt-to-db command * Minor fixes * Ignore production.py on git * Add a production conf * Add django container * Add gunicorn for prod and traefik
30 lines
602 B
Python
30 lines
602 B
Python
# vim: syntax=python
|
|
|
|
from freedcs import settings
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
SECRET_KEY = 'i4z%50+4b4ek(l0#!w2-r1hpo%&r6tk7p$p_-(=6d!c9n=g5m&'
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql',
|
|
'NAME': 'freedcs',
|
|
'USER': 'freedcs',
|
|
'PASSWORD': 'password',
|
|
'HOST': 'timescale',
|
|
'PORT': '5432',
|
|
}
|
|
}
|
|
|
|
MQTT_BROKER = {
|
|
'HOST': 'rabbitmq',
|
|
'PORT': 1883,
|
|
}
|
|
|
|
SKIP_WHITELIST = True
|