Files
netoik-db/files/postgres/postgresql.conf
samuel 6e7800721f
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
feat: restrict access to postgres socket
2026-02-24 13:37:10 +01:00

33 lines
1.3 KiB
Plaintext

#-------------------------------------------------------------------------------
# FILE LOCATIONS
# Please refer to official doc before editing this section:
# https://www.postgresql.org/docs/current/runtime-config-file-locations.html
#-------------------------------------------------------------------------------
# Change pg_hba location
hba_file = '/etc/postgres/pg_hba.conf'
#-------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
# Please refer to official doc before editing this section:
# https://www.postgresql.org/docs/current/runtime-config-connection.html
#-------------------------------------------------------------------------------
# Empty listen addresses to disable listening via TCP/IP
# because we want only uni socket connections
listen_addresses = ''
# Forbide access to users not in group postgres
unix_socket_permissions = 0770
#-------------------------------------------------------------------------------
# REPORTING AND LOGGING
# Please refer to official doc before editing this section:
# https://www.postgresql.org/docs/current/runtime-config-logging.html
#-------------------------------------------------------------------------------
# Redirect logs to stderr to be managed by journald
log_destination = 'stderr'