refact: env file organization and comments

This commit is contained in:
leandrofars 2024-02-05 23:42:45 -03:00
parent acc29c73f8
commit 577a50d68b

View File

@ -1,5 +1,8 @@
SECRET_API_KEY="secretkey" # !IMPORTANT: Change this to your own secret key, and don't share.
MONGO_URI=""
# --------------------------------- database --------------------------------- #
MONGO_URI="" # example: mongodb://localhost:27017
# ---------------------------------------------------------------------------- #
# ----------------------------------- mqtt ----------------------------------- #
DEVICES_STATUS_TOPIC=""
DEVICE_PUB_TOPIC=""
BROKER_ADDR=""
@ -9,10 +12,28 @@ BROKER_USERNAME=""
BROKER_PASSWORD=""
BROKER_CLIENTID=""
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_CORS="" # addresses must be separated by commas example: "http://localhost:3000,http://myapp.com"
# ---------------------------------------------------------------------------- #
# ----------------------------------- stomp ---------------------------------- #
STOMP_ADDR="" # example: localhost:61613
STOMP_USERNAME=""
STOMP_PASSWORD=""
MQTT_DISABLE=""
STOMP_DISABLE=""
# ---------------------------------------------------------------------------- #
# -------------------------------- websockets -------------------------------- #
WS_ADDR=""
WS_PORT=""
WS_TOKEN=""
WS_TLS=""
WS_AUTH=""
WS_ROUTE=""
WS_DISABLE=""
# ---------------------------------------------------------------------------- #