CCL Examples
CCL in practice: simple configurations that show the format’s power.
Database Configuration
Section titled “Database Configuration”database = host = localhost port = 5432 name = myapp_prod credentials = username = admin password = ${DB_PASSWORD}Multi-Environment Config
Section titled “Multi-Environment Config”beta = mode = sandbox capacity = 2 feature_flags = new_ui = true api_v2 = false
prod = mode = live capacity = 8 feature_flags = new_ui = false api_v2 = trueServer List
Section titled “Server List”servers = = web1.example.com = web2.example.com = api.example.com
backup_servers = = backup1.example.com = backup2.example.comNested Configuration
Section titled “Nested Configuration”logging = level = info outputs = console = enabled = true format = json file = enabled = true path = /var/log/app.log rotation = dailyComments and Documentation
Section titled “Comments and Documentation”/= Application configuration/= Updated: 2024-01-15
app = name = MyApp version = 2.0.0 /= Deprecated: Use feature_flags instead experimental_mode = falseAll examples use core CCL syntax: key-value pairs with indentation.