```yaml postgresql: parameters: tcp_keepalives_idle: "300" tcp_keepalives_interval: "30" ``` Set the defaults, but make it configurable