Skip to content

898 - Config with Comments

Heavily documented configuration file. This is an example of a MAML document.

maml
# 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: "Mertz, Pfannerstill and Sanford"
    version: "1.8.5" # semver
    # Brief description for the about page
    description: "Integrated asynchronous pricing structure"
  }

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

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

See Also