From 032725650257c35893b0c0af388cd9a3bb5e74a1 Mon Sep 17 00:00:00 2001 From: Jon Roeber Date: Thu, 18 Jan 2024 04:46:53 +0000 Subject: [PATCH] Update Dev Notes --- Dev-Notes.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Dev-Notes.md b/Dev-Notes.md index 1823f39..91f6cc3 100644 --- a/Dev-Notes.md +++ b/Dev-Notes.md @@ -29,6 +29,12 @@ GRANT USAGE ON SCHEMA public TO qgis; GRANT SELECT ON qgis_friendly TO qgis; ``` +Edit `/etc/postgresql/14/main/postgresql.conf` to have: + +```conf +listen_addresses = '*' +``` + Edit `/etc/postgresql/14/main/pg_hba.conf` to have: ```conf @@ -36,10 +42,16 @@ Edit `/etc/postgresql/14/main/pg_hba.conf` to have: host all all 0.0.0.0/0 scram-sha-256 ``` -`systemctl reload postgresql` +`systemctl restart postgresql` Allow PG internet access: `ufw allow postgresql` (not secure, need to add certificate, fine for testing) +Connect from local machine: + +```console +sudo apt install postgresql-client +psql -h chirpstack.roeber.dev -U qgis -d chirpstack_integration + ## 20240116 https://github.com/CrunchyData/pg_featureserv - a lightweight alternative to Geoserver for serving WFS3 (found from https://gis.stackexchange.com/a/379506)