Skip to content

Configuration

Jonbeckas edited this page May 15, 2023 · 6 revisions

Frontend

  1. Open the assets/config/config-prod.json file
  2. Set backendUrl to your backend url e.g.
{
  "backendUrl": "https://backend.example.com"
}

You could customize the welcome page under assets/welcome.html

Backend

  1. Open the config.json file
  2. Exmple Configuration (Remove the comments started with //)
{
  "database": {
    "host": "localhost",
    "port": 3306,
    "username": "root",
    "password": "password",
    "database": "checkline"
  },
  "jwtSecret": "atestpassword", //Password for jwt token, could be any secret string
  "port": 8000, // backend port
  "runners": {
    "states": [ // all states a runner could have
      "Logged in",
      "Logged out",
      "Injured",
      "Injured logged out"
    ],
    "stations":[ // all stations
        "station1",
        "station2"
    ],
    "conspicousAfterSeconds": 30 // The seconds after which a user, is listed in the conspicous runner table
  },
  "admin": { // default user that is automaticly generated
    "username": "admin",
    "firstname": "firstname",
    "name": "name"
  },
  "adminGroup": {
    "name": "AdminGroup" // name for the default group with the CENGIN_ADMIN permission
  }
}
Clone this wiki locally