-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.example
68 lines (56 loc) · 2.17 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Your custom Django secret key. Default = random.
# Important: you need to specify custom secret key in prod for working of gunicorn workers correctly
DJANGO_SECRET_KEY=SomeStrongSecretKeyFooFooBarBar
# Is Django debug mode enabled. Default = 0
DJANGO_DEBUG=0
# Django allowed hosts. Default = '*' (all).
DJANGO_ALLOWED_HOSTS=*
# The main host of site (usually - domain).
# Used also in Docker (nginx, certbot).
WEBSITE_HOST=127.0.0.1
# FOR PROD: 0, FOR TEST: 1 (default 0).
LOCAL=0
# Timezone of the project. Using in all Docker services and in Django application
TZ=Europe/Moscow
# Database settings. Used only when LOCAL=0
# You can set DB_ENGINE=django.db.backends.sqlite3 if you want to use sqlite3 database in production.
# By default used postgres.
DB_ENGINE=django.db.backends.postgresql
DB_NAME=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
DB_HOST=db
DB_PORT=5432
# ReCaptcha settings (about keys: https://cloud.google.com/recaptcha-enterprise/docs/create-key-website)
RECAPTCHA_PUBLIC_KEY=
RECAPTCHA_PRIVATE_KEY=
RECAPTCHA_REQUIRED_SCORE=0.6
# Email settings
# Default email backend:
# if LOCAL=1 - django.core.mail.backends.filebased.EmailBackend
# if LOCAL=0 - django.core.mail.backends.smtp.EmailBackend
# But you can set your own email backend that will work in any case.
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
# These settings need to set if EMAIL_BACKEND == django.core.mail.backends.smtp.EmailBackend
DEFAULT_FROM_EMAIL=''
EMAIL_HOST='mail.example.ru'
EMAIL_USE_TLS=0
EMAIL_PORT=465
EMAIL_USE_SSL=1
EMAIL_HOST_USER='user@example.ru'
EMAIL_HOST_PASSWORD='your password'
# Yandex maps keys
# For Yandex maps to work correctly, you need to specify API keys: API key and Suggest API key.
# See Yandex maps documentation
YA_MAPS_API_KEY=
YA_MAPS_SUGGEST_API_KEY=
# Logging settings
LOG_DIR=logs
# Level of logging. Available options: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# URLs to Celery broker and result backends.
CELERY_BROKER_URL=redis://petalert_redis:6379
CELERY_RESULT_BACKEND=redis://petalert_redis:6379
# Telegram settings
# Telegram bot token to send the additional information users in telegram (get it from @botfather bot).
TELEGRAM_TOKEN=