This environment variable tells the backend, which port to run the node application (server) on.
CORS_ORIGIN
This is used to allow CORS to not block resource sharing when react frontend is running locally and is requesting from backend.
value of this is of no use during deployment because the deployed docker images uses the static frontend build from the react app. (CORS doesn’t block requests from static files from the backend.)
DB_USERNAME
This is used to specify the username to connect to mongo DB.
DB_PASSWORD
This is used to specify the password to connect to mongo DB.
BackendHost
This is used by pingbot to ping to the URL.
This is also used by backend to get the server URL while writing static output files in TemporaryCodebase.
JWT_SECRET_KEY
Secret key that is used to encrypt payload to get JWT token.
GEMINI_API_KEY
Used to specify the API key for GEMINI API.
PingBotDuration
Used to specify the duration in milliseconds in which the ping-bot will ping.
MemoryLimitForOutputFileInBytes
Specifies the memory limit for output file while running the CPP file and writing its output stream to a file.
REACT_APP_SERVER_URL
Used in the react frontend as environment variables (to be baked while static file building).
This is used to by frontend to connect to backend.
For running locally use - http://localhost:8080
For deployment use - https://codesphere-1pt9.onrender.com
REACT_APP_SERVER_WS_URL
Used in the react frontend as environment variables (to be baked into the static file while static file building).
This is used to by frontend to connect ws to backend.
For running locally use - ws://localhost:8080
For deployment use - wss://codesphere-1pt9.onrender.com