Add orientation CLI and config documentation
This commit is contained in:
13
examples/config.minimal.yml
Normal file
13
examples/config.minimal.yml
Normal 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
|
||||
20
examples/config.production.yml
Normal file
20
examples/config.production.yml
Normal 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
|
||||
Reference in New Issue
Block a user