Advanced
secret.json

secret.json

This page will introduce detailed usage of secret.json.

⚠️

Note: This json has no defaults, so please configure all configuration items except mysql.dev.

secret.json
{
  "mysql": {
    "dev": {
      "username": "",
      "password": "",
      "name": "",
      "host": ""
    },
    "prod": {
      "username": "root",
      "password": "root",
      "name": "cybergui",
      "host": "127.0.0.1"
    }
  },
  "password": "admin",
  "https": true,
  "serverPort": 1106,
  "key": "path/to/your.key",
  "cert": "path/to/your.pem",
  "review": false
}

mysql

Used to set up the MySQL database.

mysql.dev

Used for debugging during development, so please try not to set it.

mysql.prod

MySQL settings used by the production environment.

mysql.prod.username

MySQL username.

Type: String

mysql.prod.password

MySQL user password.

Type: String

mysql.prod.name

MySQL database name.

Type: String

mysql.prod.host

MySQL host.

Type: String

password

Password used to answering questions.

Type: String

https

Server use https or not, recommend true.

Type: Boolean

serverPort

Server port.

Type: Number

key

Path to SSL Certificate key.

Type: String

cert

Path to SSL Certificate pem.

Type: String

review

Whether the questions need review before showing.

⚠️

Please set others.review in settings.json the same with this to avoid causing bugs.

Type: Boolean