initial commit

This commit is contained in:
2026-03-15 10:20:55 +08:00
commit ed47645fef
11 changed files with 255 additions and 0 deletions

1
postgres/init.sql Normal file
View File

@@ -0,0 +1 @@
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

11
postgres/pg_hba.conf Normal file
View File

@@ -0,0 +1,11 @@
# TYPE DATABASE USER ADDRESS METHOD
local all all scram-sha-256
host all all 127.0.0.1/32 scram-sha-256
# Allow Docker containers to connect (Standard Docker bridge subnets)
host all all 172.16.0.0/12 scram-sha-256
host all all 192.168.0.0/16 scram-sha-256
# Reject everything else
host all all 0.0.0.0/0 reject
host all all ::/0 reject