Browse Source

fix bug

main
xiaoz 6 days ago
parent
commit
3be3ee4ac4
  1. 7
      pgsql/postgres.conf

7
pgsql/postgres.conf

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
# -----------------------------
# 基础设置
# -----------------------------
listen_addresses = '127.0.0.1' # 仅允许本地连接(由 Docker 网络控制访问)
listen_addresses = '*' # 仅允许本地连接(由 Docker 网络控制访问)
port = 5432
max_connections = 100 # 根据应用连接池调整(如 pgbouncer 可设更低)
@ -46,4 +46,7 @@ lc_time = 'en_US.UTF-8' @@ -46,4 +46,7 @@ lc_time = 'en_US.UTF-8'
# -----------------------------
# 其他安全建议
# -----------------------------
password_encryption = scram-sha-256 # 强制使用 SCRAM-SHA-256 密码加密
password_encryption = scram-sha-256 # 强制使用 SCRAM-SHA-256 密码加密
# 禁用ssl
ssl = off
Loading…
Cancel
Save