617 B
617 B
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)"