-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.env
90 lines (69 loc) · 2.7 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
### Store config =======================================================================================================
### Select: postgres, mongo, redis, dgraph, sqlite, leveldb, badger, ram, rethinkdb
### Default: ram
STORE_TYPE="redis"
### Type write mode. Support: RAM, postgres, mongo
### Select (enum):
### 0 - MODE_SINGLE_WRITE
### 1 - MODE_BATCH_WRITE
### Default: 0
STORE_MODE_WRITE=0
### MongoDB ------------------------------------------------------------------------------------------------------------
### Docs: https://docs.mongodb.com/manual/reference/connection-string/
### Default: mongodb://localhost:27017
STORE_MONGODB_URI="mongodb://localhost:27017/shortlink"
### Redis --------------------------------------------------------------------------------------------------------------
### Default: localhost:6379
STORE_REDIS_URI="localhost:6379"
### Logger =============================================================================================================
### LOG_LEVEL
### Select: 0-4;
### 0 - FATAL_LEVEL
### 1 - ERROR_LEVEL
### 2 - WARN_LEVEL
### 3 - INFO_LEVEL
### 4 - DEBUG_LEVEL
### Default (INFO_LEVEL): 3
LOG_LEVEL=3
### LOG_TIME_FORMAT
### Default (RFC3339Nano): 2006-01-02T15:04:05.999999999Z07:00
LOG_TIME_FORMAT="2006-01-02T15:04:05.999999999Z07:00"
### Tracing ============================================================================================================
### TRACER_SERVICE_NAME
### Default: ShortLink
TRACER_SERVICE_NAME="ShortLink"
### TRACER_URI
### Default: localhost:6831
TRACER_URI="localhost:6831"
### API ================================================================================================================
### API_TYPE
### Select: http-chi, gRPC-web, graphql, cloudevents
### Default: http-chi
API_TYPE=http-chi
### API_PORT
### Default: 7070
API_PORT=7070
### API_TIMEOUT
### Default: 60
API_TIMEOUT=60
### MQ =================================================================================================================
### MQ_ENABLED
### Default: false
MQ_ENABLED=false
### MQ_TYPE
### Select: kafka, rabbitmq
### Default: rabbitmq
MQ_TYPE=rabbitmq
### DOCKER-COMPOSE =====================================================================================================
DOCKER_NETWORK=simple
DNS_IP=10.5.0.2
DNS_SEARCH=coredns
DATABASE_IP=10.5.0.100
DOCKER_DOMAIN=local
### Service ------------------------------------------------------------------------------------------------------------
JAEGER_VERSION=1.20.0
### Logger -------------------------------------------------------------------------------------------------------------
### Select: loki, fluent-bit
LOGGER_DRIVER=loki
LOGGER_DRIVER_URL=http://localhost:3100/loki/api/v1/push
LOGGER_MAX_SIZE=24m