27 lines
633 B
Django/Jinja
27 lines
633 B
Django/Jinja
# THIS FILE IS MANAGED BY ANSIBLE
|
|
# code: language=ansible-jinja
|
|
|
|
# Common
|
|
listen_addresses = '*'
|
|
max_connections = 100
|
|
shared_buffers = 128MB
|
|
dynamic_shared_memory_type = posix
|
|
password_encryption = scram-sha-256
|
|
datestyle = 'iso, mdy'
|
|
timezone = '{{ timezone }}'
|
|
logging_collector = on
|
|
log_timezone = '{{ timezone }}'
|
|
lc_messages = 'en_US.utf8'
|
|
lc_monetary = 'en_US.utf8'
|
|
lc_numeric = 'en_US.utf8'
|
|
lc_time = 'en_US.utf8'
|
|
|
|
# WAL settings
|
|
wal_level = replica
|
|
max_wal_size = 2GB
|
|
min_wal_size = 80MB
|
|
|
|
# Archiving
|
|
archive_mode = off
|
|
archive_command = 'test ! -f {{ postgresql_wal_archive }}/%f && cp %p {{ postgresql_wal_archive }}/%f'
|