Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) [DPE-5511] postgresql.conf hardening #702

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions templates/patroni.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,25 @@ bootstrap:
{%- endif %}
archive_mode: on
autovacuum: true
debug_print_plan: 'off'
debug_print_parse: 'off'
debug_print_rewritten: 'off'
fsync: true
full_page_writes: true
lc_messages: 'en_US.UTF8'
log_autovacuum_min_duration: 60000
log_checkpoints: 'on'
log_connections: 'on'
log_destination: 'stderr'
log_directory: '/var/log/postgresql'
log_disconnections: 'on'
log_error_verbosity: 'verbose'
log_file_mode: '0600'
log_filename: 'postgresql-%w_%H%M.log'
log_hostname: 'off'
log_line_prefix: '%t [%p]: user=%u,db=%d,app=%a,client=%h,line=%l '
log_min_duration_sample: -1
log_min_error_statement: 'warning'
log_recovery_conflict_waits: 'on'
log_replication_commands: 'on'
log_rotation_age: 1
Expand Down
Loading