-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.env.example
81 lines (66 loc) · 1.88 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
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
IS_DEVELOPMENT=true
DEBUG=true
APP_PORT=127.0.0.1:3000
APP_ENV=local
# Database Config
DB_DIALECT=postgres
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=golang-api
DB_PASSWORD=golang-api
DB_NAME=golang-api
# for postgres used this query sting
DB_QUERYSTRING=sslmode=disable
# for mysql used this query string
# DB_QUERYSTRING=parseTime=true
MIGRATION_DIR=database/migrations
SQLITE_FILEPATH=database/golang-api.db
#JWT
JWT_SECRET=ThisIsKey
#KRATOS
KRATOS_ENABLED=true
KRATOS_COOKIE_EXPIRATION_TIME=2h23m # Time should be in the format of 1h23m, valid units are "h", "m", "s", "ms", "us", "ns"
SERVE_PUBLIC_BASE_URL=http://127.0.0.1:4433/ # URL where the endpoint is exposed at. **used to generate redirects.
SERVE_PUBLIC_HOST=127.0.0.1 # host on which the public endpoint listenes on.
SERVE_PUBLIC_PORT=4435 # port of the kratos public endpoint.
SERVE_ADMIN_BASE_URL=http://xyz.com # URL where the admin endpoint is exposed at.
SERVE_ADMIN_HOST=127.0.0.1 # host on which the admin endpoint listenes on.
SERVE_ADMIN_PORT=4451 # port on which the admin endpoint listens on.
SELF_SERVICE_DEFAULT_BROWSER_RETURN_URL=http://127.0.0.1:4455
SELFSERVICE_ALLOWED_RETURN_URLS_0=http://127.0.0.1:4455
SELFSERVICE_ALLOWED_RETURN_URLS_1=http://127.0.0.1:4433
# Message queue config
MQ_TRACK=true
MQ_DEBUG=true
DEAD_LETTER_QUEUE=dead_queue
HANDLER_NAME=handler
# sql
MQ_DIALECT=sql
MQ_DB_DIALECT=postgres
MQ_DB_HOST=localhost
MQ_DB_PORT=5432
MQ_DB_USERNAME=golang-api
MQ_DB_PASSWORD=golang-api
MQ_DB_NAME=golang-api
MQ_DB_QUERYSTRING=sslmode=disable
# Rabbitmq
# MQ_DIALECT=amqp
# AMQB_URI=amqp://guest:guest@localhost:5672/
# Redis
# MQ_DIALECT=redis
# REDIS_HOST=
# CONSUMER_GROUP=
# REDIS_USERNAME=
# REDIS_PASSWORD=
# kafka
# MQ_DIALECT=kafka
# KAFKA_BROKER=
# CONSUMER_GROUP=
# googleCloud
# MQ_DIALECT=googlecloud
# PROJECT_ID=
# SUBSCRIPTION_ID=
# flipt Config
FLIPT_ENABLED=true
FLIPT_HOST=localhost
FLIPT_PORT=9000