sync public allowlist from private myoffice
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Create pgpass inside the container (mode 0600). Bind-mounted files from Windows
|
||||
# cannot satisfy pgAdmin's permission check.
|
||||
set -eu
|
||||
|
||||
PASSFILE=/var/lib/pgadmin/pgpass
|
||||
printf '%s\n' 'postgres:5432:*:myoffice:myoffice' > "$PASSFILE"
|
||||
chown 5050:0 "$PASSFILE" 2>/dev/null || true
|
||||
chmod 600 "$PASSFILE"
|
||||
|
||||
exec /entrypoint.sh "$@"
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"Servers": {
|
||||
"1": {
|
||||
"Name": "myoffice",
|
||||
"Group": "Servers",
|
||||
"Host": "postgres",
|
||||
"Port": 5432,
|
||||
"MaintenanceDB": "myoffice",
|
||||
"Username": "myoffice",
|
||||
"SSLMode": "prefer",
|
||||
"PassFile": "/var/lib/pgadmin/pgpass"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user