refact: env file organization and comments
This commit is contained in:
parent
acc29c73f8
commit
577a50d68b
|
|
@ -1,5 +1,8 @@
|
||||||
SECRET_API_KEY="secretkey" # !IMPORTANT: Change this to your own secret key, and don't share.
|
# --------------------------------- database --------------------------------- #
|
||||||
MONGO_URI=""
|
MONGO_URI="" # example: mongodb://localhost:27017
|
||||||
|
# ---------------------------------------------------------------------------- #
|
||||||
|
|
||||||
|
# ----------------------------------- mqtt ----------------------------------- #
|
||||||
DEVICES_STATUS_TOPIC=""
|
DEVICES_STATUS_TOPIC=""
|
||||||
DEVICE_PUB_TOPIC=""
|
DEVICE_PUB_TOPIC=""
|
||||||
BROKER_ADDR=""
|
BROKER_ADDR=""
|
||||||
|
|
@ -9,10 +12,28 @@ BROKER_USERNAME=""
|
||||||
BROKER_PASSWORD=""
|
BROKER_PASSWORD=""
|
||||||
BROKER_CLIENTID=""
|
BROKER_CLIENTID=""
|
||||||
BROKER_QOS=""
|
BROKER_QOS=""
|
||||||
|
MQTT_DISABLE=""
|
||||||
|
# ---------------------------------------------------------------------------- #
|
||||||
|
|
||||||
|
# --------------------------------- api rest --------------------------------- #
|
||||||
|
SECRET_API_KEY="secretkey" # !IMPORTANT: Change this to your own secret key, and don't share.
|
||||||
REST_API_PORT=""
|
REST_API_PORT=""
|
||||||
REST_API_CORS="" # addresses must be separated by commas example: "http://localhost:3000,http://myapp.com"
|
REST_API_CORS="" # addresses must be separated by commas example: "http://localhost:3000,http://myapp.com"
|
||||||
|
# ---------------------------------------------------------------------------- #
|
||||||
|
|
||||||
|
# ----------------------------------- stomp ---------------------------------- #
|
||||||
STOMP_ADDR="" # example: localhost:61613
|
STOMP_ADDR="" # example: localhost:61613
|
||||||
STOMP_USERNAME=""
|
STOMP_USERNAME=""
|
||||||
STOMP_PASSWORD=""
|
STOMP_PASSWORD=""
|
||||||
MQTT_DISABLE=""
|
STOMP_DISABLE=""
|
||||||
STOMP_DISABLE=""
|
# ---------------------------------------------------------------------------- #
|
||||||
|
|
||||||
|
# -------------------------------- websockets -------------------------------- #
|
||||||
|
WS_ADDR=""
|
||||||
|
WS_PORT=""
|
||||||
|
WS_TOKEN=""
|
||||||
|
WS_TLS=""
|
||||||
|
WS_AUTH=""
|
||||||
|
WS_ROUTE=""
|
||||||
|
WS_DISABLE=""
|
||||||
|
# ---------------------------------------------------------------------------- #
|
||||||
Loading…
Reference in New Issue
Block a user