-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env.template
63 lines (41 loc) · 1.23 KB
/
.env.template
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
PROJECT_NAME="Nion"
VERSION_MAJOR=2
VERSION_MINOR=0
VERSION_PATCH=1
# Types: stable, unstable, develop
VERSION_TYPE="stable"
RELEASE=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH} [${VERSION_TYPE}]
# Log level: DEBUG - 0, INFO - 1, WARN - 2, ERROR - 3, CRITICAL_ERROR - 4
LOG_LEVEL=1
LOG_FILE_NAME="log.log"
# Telegram bot
BOT_TOKEN="1234567890:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
NO_FOUND_HOMEWORK_MSG="Не добавлено домашнее задание"
TG_ID_OWNER=1234567890
TG_USERNAME_OWNER="UserName"
TG_FIRST_NAME_OWNER="user"
TG_LAST_NAME_OWNER=
NAME_ROLE_OWNER="Владелец"
ID_ROLE_OWNER=-1
NAME_ROLE_DEFAULT="Пользователь"
ID_ROLE_DEFAULT=0
REQUESTS_TIMEOUT=3
# Backend
BACKEND_HOST="localhost"
BACKEND_PORT=8000
# PostgresSQL
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="password"
POSTGRES_PORT=9999
POSTGRES_DB="app"
POSTGRES_URL=postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_CONTAINER_NAME}:${POSTGRES_PORT}/${POSTGRES_DB}
POSTGRES_DATA="/var/lib/postgresql/data/pgdata"
# NGINX
TEST_PORT_HTTP=5555
TEST_PORT_HTTPS=5556
# Docker
DATABASE_CONTAINER_NAME="DB"
BOT_CONTAINER_NAME="BOT"
BACKEND_CONTAINER_NAME="BACKEND"
NGINX_CONTAINER_NAME="NGINX"
VOLUME_DATABASE="DATABASE"