Server to manage and dynamically add/remove .well-known entries.
Find a file
2024-08-11 03:53:18 +00:00
config replace redis with postgres 2024-08-10 23:45:26 -04:00
db replace redis with postgres 2024-08-10 23:45:26 -04:00
matrix replace redis with postgres 2024-08-10 23:45:26 -04:00
migrations replace redis with postgres 2024-08-10 23:45:26 -04:00
nostr replace redis with postgres 2024-08-10 23:45:26 -04:00
.gitignore replace redis with postgres 2024-08-10 23:45:26 -04:00
go.mod replace redis with postgres 2024-08-10 23:45:26 -04:00
go.sum replace redis with postgres 2024-08-10 23:45:26 -04:00
LICENSE Initial commit 2023-01-25 04:46:23 +00:00
main.go replace redis with postgres 2024-08-10 23:45:26 -04:00
README.md replace redis with postgres 2024-08-10 23:45:26 -04:00
sample.env replace redis with postgres 2024-08-10 23:45:26 -04:00

well-goknown

Server to manage and dynamically add/remove .well-known entries. Requires postgres 15+

Pre-requisites

apt install podman
podman pull docker.io/library/postgres:15
podman run -e POSTGRES_PASSWORD=x -p 5432:5432 --name wg-psql docker.io/library/postgres:15

# setup postgres
PGPASSWORD=x psql -d postgres -U postgres -h 127.0.0.1 << EOF
CREATE DATABASE wgk;
CREATE USER wgk WITH ENCRYPTED PASSWORD 'x';
GRANT ALL PRIVILEGES ON DATABASE wgk TO wgk;
ALTER DATABASE wgk OWNER TO wgk;
EOF