Skip to main content

Database Connection

The API connects to a MySQL database for storing agent information. The database connection details are specified using environment variables:

  • DB_HOST: The host name or IP address of the MySQL database.
  • DB_USER: The username for accessing the MySQL database.
  • DB_PASS: The password for accessing the MySQL database.
  • DB_MAIN: The name of the main database.