-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
80 lines (69 loc) · 2.24 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
#
# ==================== APP Config ====================
#
PORT=8000
ENABLE_SWAGGER=1
ENABLE_CORS=1
# If enabled
# sequelize synchronize = true
DEVELOPER_MODE=1
# How long internal CID string for ipfs file
INTERNAL_CID_LENGTH=10
# Database app
# relate with Docker DB container config
# if run app from docker make sure POSTGRES_APP_HOST is db container name.
# if run app using npm from local host, set POSTGRES_APP_HOST = localhost since
# db container is ezposed to localhost.
POSTGRES_APP_HOST=localhost
POSTGRES_APP_PORT=5432
POSTGRES_APP_USER='decentdisk'
POSTGRES_APP_PASSWORD='decentdisk'
POSTGRES_APP_DB='decentdisk'
# passport-jwt
JWT_EXPIRES=3600s
# node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
JWT_SECRET=secret_key
# Google credentials
GOOGLE_CLIENT_ID=google_client_id
# Admin Email
# if the below email are sign up / sign in,
# will be automatically assigned as admin.
# comma separated: [email protected],[email protected]
#
# If you run app in docker container, fill this with service name
# example : IPFS_HOST=ipfs -> see docker-compose.yml in ipfs service.
# If you run app in localhost, fill this with localhost
# example : IPFS_HOST=localhost.
IPFS_HOST=localhost
#
# If ipfs kubo in local docker container, this value same as RPC_API value.
# example : IPFS_RPC_API_PORT=5001 -> see below env var : RPC_API
IPFS_RPC_API_PORT=5001
# Gateway checker
# cron expression, system check gateway regulry, here is the cron config for that
GATEWAY_CHECKER_CRON=*/10 * * * *
# This is file CID will be used for check gateway
GATEWAY_CHECKER_CID=bafybeifx7yeb55armcsxwwitkymga5xf53dxiarykms3ygqic223w5sk3m
#
# ==================== Docker Config ====================
#
# Docker DB container config
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_USER='decentdisk'
POSTGRES_PASSWORD='decentdisk'
POSTGRES_DB='decentdisk'
POSTGRES_DATA_PATH=./data/db
#
# Docker IPFS config
# https://docs.ipfs.tech/install/run-ipfs-inside-docker/#set-up
# NEVER EXPOSE THE RPC_API TO THE PUBLIC INTERNET
#
P2P_PORT=4001
GATEWAY_PORT=127.0.0.1:8080
RPC_API=127.0.0.1:5001
# IPFS Profile: https://github.com/ipfs/kubo/blob/master/docs/config.md#profiles
IPFS_PROFILE=lowpower
IPFS_STAGING=./data/ipfs/staging
IPFS_DATA=./data/ipfs/data