-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
49 lines (40 loc) · 1.32 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
# Common ------------------------
PG_HOST=postgres.db
PG_PORT=5432
PG_USER=postgres
PG_PASSWORD=your_password
TOKEN_URL=http://localhost:your_port/api/v1/auth/login/
PAGE_SIZE=10
# Auth --------------------
REDIS_SECURE=True
REDIS_USER=your_redis
REDIS_PASSWORD=your_password_redis
REDIS_DB=0
REDIS_DECODE_RESPONSES=True
REDIS_ENCODING=utf-8
REDIS_POOL_MAX_CONNECTIONS=100
SSL_KEYFILE=redis/certs/redis.key
SSL_CERTFILE=redis/certs/redis.crt
SSL_CERT_REQS=required
SSL_CA_CERTS=redis/certs/ca.crt
PORT_AUTH=80
HOST_AUTH=0.0.0.0
PRIVATE_KEY_PATH=certs/jwt-private.pem
PUBLIC_KEY_PATH=certs/jwt-public.pem
ALGORITHM=RS256
# Время для токенов доступа и обновления установлены для примера работы.
# В настоящем проекте рекомендуется ставить для access-token - ~1 день, для refresh-token - ~30 дней.
ACCESS_TOKEN_EXPIRE_MINUTES=5
REFRESH_TOKEN_EXPIRE_MINUTES=10
OPENAPI_URL_AUTH=/swagger/docs/v1.0/auth
CLIENT_ID_AUTH=auth
CLIENT_SECRET_AUTH=auth_secret
# User -----------------------
PG_DATABASE_USER=Your_DB_NAME
PORT_USER=80
HOST_USER=0.0.0.0
AUTH_ENDPOINT_URL=http://auth.api/api/v1/auth/authenticate/
AUTH_URL=http://localhost:your_port
OPENAPI_URL_USER=/swagger/docs/v1.0/users
CLIENT_ID_USER=user
CLIENT_SECRET_USER=user_secret