tangled
alpha
login
or
join now
dunkirk.sh
/
indiko
6
fork
atom
my own indieAuth provider!
indiko.dunkirk.sh/docs
indieauth
oauth2-server
6
fork
atom
overview
issues
pulls
pipelines
feat: add database url
dunkirk.sh
2 months ago
ba534fba
31336410
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+3
-1
2 changed files
expand all
collapse all
unified
split
.env.example
src
db.ts
+1
.env.example
···
2
2
RP_ID=indiko.dunkirk.sh
3
3
PORT=3000
4
4
NODE_ENV="production"
5
5
+
DATABASE_URL=data/indiko.db
+2
-1
src/db.ts
···
3
3
4
4
Bun.write("data/.gitkeep", "");
5
5
6
6
-
const db = new Database("data/indiko.db");
6
6
+
const dbPath = process.env.DATABASE_URL || "data/indiko.db";
7
7
+
const db = new Database(dbPath);
7
8
8
9
db.run("PRAGMA journal_mode = WAL;");
9
10
db.run("PRAGMA foreign_keys = ON;");