Server to manage and dynamically add/remove .well-known entries.
Find a file
2024-11-18 19:32:21 -05:00
config chore: variablize relay info 2024-08-14 21:20:14 -04:00
db replace context with caller for zerolog, add vendor 2024-09-16 21:01:50 -04:00
lightningpub replace context with caller for zerolog, add vendor 2024-09-16 21:01:50 -04:00
matrix replace context with caller for zerolog, add vendor 2024-09-16 21:01:50 -04:00
migrations feat: add lnurl with lightning.pub 2024-09-02 14:28:19 -04:00
nostr update policies 2024-09-25 21:59:44 -04:00
vendor dependency updates 2024-11-18 19:32:21 -05:00
.gitignore Add goreleaser 2024-10-28 20:11:29 -04:00
.goreleaser.yaml add goreleaser url 2024-10-28 20:23:02 -04:00
go.mod dependency updates 2024-11-18 19:32:21 -05:00
go.sum dependency updates 2024-11-18 19:32:21 -05:00
LICENSE Initial commit 2023-01-25 04:46:23 +00:00
main.go fix ldflags for goreleaser 2024-10-28 20:37:13 -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)"