| 1 | application: |
| 2 | name: MyApp |
| 3 | version: "2.1.0" |
| 4 | environment: production |
| 5 | |
| 6 | server: |
| 7 | host: 0.0.0.0 |
| 8 | port: 8080 |
| 9 | workers: 4 |
| 10 | timeout: 60 |
| 11 | |
| 12 | database: |
| 13 | engine: postgresql |
| 14 | host: db.prod.example.com |
| 15 | port: 5432 |
| 16 | name: myapp_production |
| 17 | pool: |
| 18 | min_size: 5 |
| 19 | max_size: 20 |
| 20 | |
| 21 | logging: |
| 22 | level: INFO |
| 23 | format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" |
| 24 | handlers: |
| 25 | - console |
| 26 | - file |
| 27 | file: |
| 28 | path: /var/log/myapp.log |
| 29 | max_size: 100MB |
| 30 | backup_count: 10 |
| 31 | |
| 32 | cache: |
| 33 | enabled: true |
| 34 | backend: redis |
| 35 | ttl: 3600 |