Example 14698

Config with Comments

Heavily documented configuration file.

# Application Configuration File
# Generated by MAML examples
{
# Application metadata
# These values are shown in the UI
app: {
# The display name shown in the UI
name: "Kerluke, Farrell and Donnelly"
version: "7.18.9" # semver
# Brief description for the about page
description: "Secured system-worthy instruction set"
}

# Server configuration
server: {
host: "0.0.0.0" # bind to all interfaces
port: 4644 # default: 8080
# Number of worker processes
workers: 16 # set to 0 for auto
}

# Logging settings
logging: {
# Valid levels: debug, info, warn, error
level: "error"
format: "json" # json recommended for production
output: "/var/log/app.log" # file path or stdout
}
}

See also