well-goknown/README.md

20 lines
513 B
Markdown
Raw 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
```