Server to manage and dynamically add/remove .well-known entries.
Find a file
2024-08-31 09:42:57 -04:00
config chore: variablize relay info 2024-08-14 21:20:14 -04:00
db chore: cleanup code 2024-08-17 15:26:53 -04:00
matrix chore: cleanup and add auth 2024-08-14 20:38:38 -04:00
migrations replace redis with postgres 2024-08-10 23:45:26 -04:00
nostr apply sane defaults again, upgrade deps 2024-08-31 09:42:57 -04:00
.gitignore replace redis with postgres 2024-08-10 23:45:26 -04:00
go.mod apply sane defaults again, upgrade deps 2024-08-31 09:42:57 -04:00
go.sum apply sane defaults again, upgrade deps 2024-08-31 09:42:57 -04:00
LICENSE Initial commit 2023-01-25 04:46:23 +00:00
main.go chore: variablize relay info 2024-08-14 21:20:14 -04:00
README.md chore: variablize relay info 2024-08-14 21:20:14 -04:00
sample.env chore: variablize relay info 2024-08-14 21:20:14 -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

To build a release version, go to a tag and run:

go build -ldflags="-X main.Commit=$(git tag)"