fix listen_addr and listen_port

This commit is contained in:
ace 2023-05-11 14:12:15 +03:00
parent 6e4d37dbe4
commit b0142125de
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,8 @@ pgbouncer_log_dir: "/var/log/pgbouncer"
pgbouncer_pid_dir: "/tmp" pgbouncer_pid_dir: "/tmp"
pgbouncer_pid_name: "pgbouncer.pid" pgbouncer_pid_name: "pgbouncer.pid"
pgbouncer_log_name: "pgbouncer.log" pgbouncer_log_name: "pgbouncer.log"
pgbouncer_listen_port: 6432 pgbouncer_listen_addr: '0.0.0.0'
pgbouncer_listen_port: '6432'
pgbouncer_systemd_user: "pgbouncer" pgbouncer_systemd_user: "pgbouncer"
pgbouncer_systemd_group: "pgbouncer" pgbouncer_systemd_group: "pgbouncer"
pgbouncer_max_client_conn: 10000 pgbouncer_max_client_conn: 10000

View File

@ -18,8 +18,8 @@ server_tls_sslmode = {{ pgbouncer_server_tls_sslmode }}
{% endif %} {% endif %}
logfile = {{ pgbouncer_log_dir }}/{{ pgbouncer_log_name }} logfile = {{ pgbouncer_log_dir }}/{{ pgbouncer_log_name }}
pidfile = {{ pgbouncer_pid_dir }}/{{ pgbouncer_pid_name }} pidfile = {{ pgbouncer_pid_dir }}/{{ pgbouncer_pid_name }}
listen_addr = {{ pgbouncer_listen_addr | default('0.0.0.0') }} listen_addr = {{ pgbouncer_listen_addr }}
listen_port = {{ pgbouncer_listen_port | default('6432') }} listen_port = {{ pgbouncer_listen_port }}
unix_socket_dir = /var/run/postgresql unix_socket_dir = /var/run/postgresql
auth_type = {{ pgbouncer_auth_type }} auth_type = {{ pgbouncer_auth_type }}
auth_file = {{ pgbouncer_auth_file }} auth_file = {{ pgbouncer_auth_file }}