diff --git a/pgsql/postgres.conf b/pgsql/postgres.conf index d2f7bf0..997ae5e 100644 --- a/pgsql/postgres.conf +++ b/pgsql/postgres.conf @@ -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' # ----------------------------- # 其他安全建议 # ----------------------------- -password_encryption = scram-sha-256 # 强制使用 SCRAM-SHA-256 密码加密 \ No newline at end of file +password_encryption = scram-sha-256 # 强制使用 SCRAM-SHA-256 密码加密 + +# 禁用ssl +ssl = off \ No newline at end of file