This guide walks you through configuring the application to suit your needs. It covers everything from initial setup to advanced customizations.
Open config.yaml located in the root directory and edit the following fields:
# config.yaml
server:
host: "127.0.0.1"
port: 8080
database:
type: "postgres"
url: "postgres://user:password@localhost:5432/dbname"
logging:
level: "info"
After editing, restart the service:
systemctl restart myapp.service
Use the --config flag to specify an alternative configuration file:
myapp --config /path/to/custom-config.yaml
Enable TLS by adding the following to config.yaml:
tls:
enabled: true
cert_file: "/etc/myapp/cert.pem"
key_file: "/etc/myapp/key.pem"
url field and ensure the database is reachable.server.port to an unused port.kill -HUP $(pidof myapp)/var/log/myapp/app.log.