Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Configuration

MedzikUser edited this page Sep 21, 2022 · 3 revisions

Generate development TLS certificate

# Generate private key
openssl genrsa -out cert.key 204
# Generate certificate
openssl req -new -x509 -key cert.key -out cert.pem -days 365

Server configuration

The configuration file must be in the working directory and must be named config.toml.

[http]
host = "0.0.0.0"            # HTTP(S) server address
httpPort = 80               # HTTP server port (this is redirect to https port)
httpsPort = 443             # HTTPS server port
cors = ["localhost:8080"]   # CORS domains
tlsCert = "./cert.pem"      # Path to the TLS certificate file
tlsKey = "./cert.key"       # Path to the TLS key file
Clone this wiki locally