-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
37 lines (30 loc) · 912 Bytes
/
.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
# GRPC credentials
GRPC_PORT=50051
GRPC_HOST=localhost
# HTTP credentials
HTTP_PORT=8080
HTTP_HOST=localhost
# SWAGGER credentials
SWAGGER_HOST=localhost
SWAGGER_PORT=8090
# Database credentials
PG_HOST=localhost
PG_PORT=5432
PG_USER=auth-user
PG_PASSWORD=auth-password
PG_DB=auth
PG_DSN="host=localhost port=5432 dbname=auth user=auth-user password=auth-password sslmode=disable"
MIGRATION_DSN="host=localhost port=5432 dbname=auth user=auth-user password=auth-password sslmode=disable"
MIGRATION_DOCKER_DSN="host=pg port=5432 dbname=auth user=auth-user password=auth-password sslmode=disable"
MIGRATION_DIR=./migrations
# JWT credentials
AUTH_PREFIX="Bearer"
REFRESH_TOKEN_SECRET_KEY=
ACCESS_TOKEN_SECRET_KEY=
REFRESH_TOKEN_EXPIRATION="60 * time.Minute"
ACCESS_TOKEN_EXPIRATION="5 * time.Minute"
# Logger credentials
LOG_LEVEL=info
# Prometheus credentials
PROMETHEUS_HOST=localhost
PROMETHEUS_PORT=2112