Last active
February 15, 2026 08:10
-
-
Save tigusigalpa/eb2deee7a3ea8f170266e2a50c3729d4 to your computer and use it in GitHub Desktop.
Postgres config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # TYPE DATABASE USER ADDRESS METHOD | |
| # Remote VPN/IP connections | |
| # Replace xxx.xxx.xx.xxx with your VPN IP | |
| host all all xxx.xxx.xx.xxx/32 scram-sha-256 | |
| # Local Unix-socket connections | |
| local all all scram-sha-256 | |
| # IPv4 local connections | |
| host all all 127.0.0.1/32 scram-sha-256 | |
| host all all 172.16.0.0/12 scram-sha-256 | |
| # Docker internal network | |
| host all all 192.168.0.0/16 scram-sha-256 | |
| # Local network | |
| host all all 10.0.0.0/8 scram-sha-256 | |
| # Private network range | |
| # IPv6 local connections | |
| host all all ::1/128 scram-sha-256 | |
| # Local replication | |
| local replication all scram-sha-256 | |
| host replication all 127.0.0.1/32 scram-sha-256 | |
| host replication all ::1/128 scram-sha-256 | |
| # Reject all other connections | |
| host all all all reject |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment