From 577a50d68b27fa8da7b6f3f1fee84bd490120de6 Mon Sep 17 00:00:00 2001 From: leandrofars Date: Mon, 5 Feb 2024 23:42:45 -0300 Subject: [PATCH] refact: env file organization and comments --- backend/services/controller/.env | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/backend/services/controller/.env b/backend/services/controller/.env index 76615a5..e23de3c 100644 --- a/backend/services/controller/.env +++ b/backend/services/controller/.env @@ -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="" \ No newline at end of file +STOMP_DISABLE="" +# ---------------------------------------------------------------------------- # + +# -------------------------------- websockets -------------------------------- # +WS_ADDR="" +WS_PORT="" +WS_TOKEN="" +WS_TLS="" +WS_AUTH="" +WS_ROUTE="" +WS_DISABLE="" +# ---------------------------------------------------------------------------- # \ No newline at end of file