well-goknown/README.md

25 lines
617 B
Markdown
Raw Permalink Normal View History

2023-01-25 04:46:23 +00:00
# well-goknown
Server to manage and dynamically add/remove `.well-known` entries.
2024-08-10 23:55:16 +00:00
Requires postgres 15+
2024-08-10 23:55:16 +00:00
## 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
```
2024-08-15 01:20:14 +00:00
To build a release version, go to a tag and run:
```
go build -ldflags="-X main.Commit=$(git tag)"
```