Add orientation CLI and config documentation

This commit is contained in:
2026-06-11 14:10:27 +00:00
parent a97de4c720
commit b4bdd2e4f1
5 changed files with 257 additions and 25 deletions

View File

@@ -0,0 +1,13 @@
server:
listen_addr: ":8080"
default_format: json
databases:
- name: weatherdb
driver: postgres
uri: postgres://localhost:5432/weatherdb?sslmode=disable
username: weatherapi
password: change-me
templates:
base_dir: templates

View File

@@ -0,0 +1,20 @@
server:
listen_addr: ":8080"
default_format: json
read_timeout: 5s
write_timeout: 10s
idle_timeout: 120s
databases:
- name: weatherdb
driver: postgres
uri: postgres://postgres.example.internal:5432/weatherdb?sslmode=require
username: weatherapi
password: ${WEATHERAPI_DB_PASSWORD}
max_open_conns: 10
max_idle_conns: 5
conn_max_lifetime: 30m
conn_max_idle_time: 5m
templates:
base_dir: templates