-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
46 lines (40 loc) · 868 Bytes
/
.env
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
# App Configuration
APP_NAME=development
APP_HOST=0.0.0.0
APP_PORT=8000
APP_DEBUG=true
APP_REQUEST_TIMEOUT=10s
APP_SHUTDOWN_WAIT=1s
APP_SHUTDOWN_TIMEOUT=10s
APP_URL=http://localhost:8000
#HTPP Anddress
HTTP_ADDRESS=127.0.0.1:8000
# Grpc Server
GRPC_ADDRESS=127.0.0.1:9000
# DB Connection
DB_DRIVER=pgx
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USERNAME=plabs
DB_PASSWORD=plabs
DB_SCHEMA=shoping
DB_MAX_IDLE_CONN=10
DB_MAX_OPEN_CONN=100
DB_MAX_LIFETIME_CONN=1m
DB_KEEP_ALIVE_INTERVAL_CONN=1m
# Log Option
LOG_JSON_ENABLED=false
LOG_LEVEL=3
LOG_BATCH_ENABLED=false
LOG_BATCH_INTERVAL=10ms
LOG_BATCH_MAX_LINES=1000
# Kafka
KAFKA_BROKER_HOST=127.0.0.1
KAFKA_BROKER_PORT=9092
KAFKA_TOPIC=my-topic
# Auth Option
AUTH_ACCESS_TOKEN_SECRET_KEY=secret_key
AUTH_ACCESS_TOKEN_EXPIRES=24h
AUTH_REFRESH_TOKEN_SECRET_KEY=secret_key
AUTH_REFRESH_TOKEN_EXPIRES=730h
AUTH_BCRYPT_COST=10