Add bluemap sql database

This commit is contained in:
Root User 2026-03-20 16:56:05 +01:00
parent 36b9c2f141
commit baf645655b
Signed by: root
GPG key ID: 087F0A95E5766D72

View file

@ -81,6 +81,7 @@ in {
local all all trust
host all all 10.1.1.4/32 scram-sha-256
host all all 10.1.1.249/32 scram-sha-256
host all all 10.1.1.244/32 scram-sha-256
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
'';
@ -115,3 +116,11 @@ in {
system.stateVersion = "25.11";
};
}
sudo -u postgres psql
CREATE DATABASE bluemap;
CREATE USER bluemap WITH PASSWORD 'MTTd35ReP4NQNPT9cI7HIaqSaeQPbndqE5uIWACAYmDKcvstmo';
GRANT ALL PRIVILEGES ON DATABASE bluemap TO bluemap;
\q
# For Postgres you may need to allow remote connections and adjust pg_hba.conf