Files
todo-hetzner/ansible/roles/postgres/templates/postgresql.conf.j2
T
cole-maxwell1 1382c42803 feat: add Hetzner-hosted todo application stack
Implement the server-rendered Go todo application with PostgreSQL persistence, Tailwind styling, health checks, and test coverage.

Provision production and staging infrastructure with OpenTofu, including private networking, static IPs, Object Storage backups, and load balancing.

Configure Rocky Linux hosts with Ansible, rootless Podman, PostgreSQL, WAL-G backup automation, staging restores, and generated inventory.
2026-08-06 21:34:56 -05:00

21 lines
518 B
Django/Jinja

data_directory = '{{ postgres_data_dir }}'
listen_addresses = '127.0.0.1'
port = 5432
max_connections = 100
shared_buffers = 256MB
password_encryption = 'scram-sha-256'
wal_level = replica
max_wal_senders = 5
wal_compression = on
{% if deployment_environment == 'prod' %}
archive_mode = on
archive_command = '/usr/local/sbin/wal-g-postgres wal-push %p'
archive_timeout = 300
{% else %}
archive_mode = off
archive_command = ''
{% endif %}
logging_collector = on
log_directory = 'log'
log_filename = 'postgresql-%a.log'