Skip to content

Commit ea7a0bf

Browse files
committed
docs: housekeepign
1 parent 9b9ab43 commit ea7a0bf

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CACHING_METHOD="redis" # can be "redis", "object" or "none". Defaults to object
77
DATABASE_URL="postgresql://shortify:randompassword@localhost:5432/mydb?schema=public"
88

99
# for simplicity we only support jwk for hmac algos.
10+
# (optional) use the provided utility (utils/jwt_generate.ts) to generate
1011
KEY_TYPE="jwk" # can be either "jwk" or "pkcs8". see jwt/jose rfc/docs for information.
1112
KEY_ALGO="EdDSA"
1213
JWT_KEY='{"kty":"OKP","crv":"Ed25519","x":"...","d":"..."}'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3333
### ✨ Features
3434
- handle logging levels at run-time via the `DEBUG` environment variable (d930837)
3535
- automatically migrate the database on server hook setup (f3c5cbe)
36+
- jwk reading is now implemented, which enables the following POC (5cd756f)
37+
- POC link generation implemented (48e03ce)
38+
- (**server**) add jwt token checks (9b9ab43)
3639

3740
### 🧩 Components
3841
- removed essentially every overcomplicated component and modules (857ebc4)

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,12 @@ Sleek self-hostable link shortening service. No analytics included!
44

55
## Deployment
66

7-
So far we only support postgresql databases. More options may be added later as
8-
we figure out a different way.
7+
> [!NOTE]
8+
>
9+
> We only support PostgreSQL databases.
10+
11+
### Setup
12+
13+
To generate required keys, you might want to use the provided utility available at `utils/jwt_generate.ts`. This tool requires Deno to run.
14+
15+
As the project uses the standardized JSON Web Key format, it is possible to generate keys usable in this project without having to use the tool.

deno.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)