Skip to content
_DiSay edited this page Sep 25, 2022 · 2 revisions

The config is created automatically (if it is missing). And always stored in the config.toml file

Info

dev_mode = true

[SSL]
  cert_file = ""
  key_file = ""
  ssl = false

[server]
  address = ""
  port = 8080

DEV_MODE

dev_mode = false

Sets the development mode. The default is false. If set to true, with each request, the server will re-interpret the file responsible for a particular path.

SSL

[SSL]
  cert_file = ""
  key_file = ""
  ssl = false

cert_file

cert_file = ""

Sets the path to the .crt file. File must be specified if ssl = true

key_file

key_file = ""

Sets the path to the .key file. File must be specified if ssl = true

ssl

ssl = false

Is SSL enabled? By default, it is false, if you need a secure http connection, set it to true

SERVER

[server]
  address = ""
  port = 8080

address

address = ""

Specifies the address on which the server should start, usually it is not necessary to specify it.

port

port = 8080

Specifies the port on which the server should start. According to the standard port = 8080. You can specify any other convenient for you.

Clone this wiki locally