- Reactions Storage server — an HTTP web server that handles all incoming requests
. devtools/exenv .env
go run main.go --config configs/server.yaml
- Server configuration includes a single yaml file.
- Configuration example: server.yaml.
- Configuration file path should be given to the server binary via --config flag. Default value: "configs/server.yaml".
- All available settings can be found in server.go.
gin
— represents gin related settings (mode, middleware, http handlers, etc)general
mode
: debug/release/... — one of gin modes.trusted_proxies
— trusted proxies setting
middlewares
logger
enabled
: true/false
recovery
enabled
: true/false
prometheus
enabled
: true/falsemetrics_path
— URL path for metrics handlermetrics
gin
enabled
: true/flase
sql
enabled
: true/false
debug
enabled
: true/false
handlers
debug
pprof
enabled
: true/falsepath_prefix
— URL path prefix for pprof handlers
mem_usage
enabled
: true/falsepath
— URL path for mem usage handler
pg
pool
min_conns
— min active connections to PostgreSQLmax_conns
— max active connections to PostgreSQLmax_conns_lifetime_jitter_s
— max random delay before closing active connection