Backend Stack: Go, PocketBase, Echo, FFmpeg, discordgo
Frontend Stack: SvelteKit, Tailwind (DaisyUI), VidStack, PNPM
SAMPLE.env
to .env
and fill in the stringsdocker-compose up
SAMPLE.env
to .env
and fill in the stringssource .env
Frontend:
cd frontend
pnpm i
pnpm run dev --host
Backend:
cd backend
go get ./cmd/archiv-wubbl0rz
go run ./cmd/archiv-wubbl0rz serve --http 0.0.0.0:8090
The easiest way is to use caddy. Paste the following into a file called Caddyfile
.
wubbl0rz.tv {
reverse_proxy localhost:3000
header Cache-Control "max-age=31536000"
header Access-Control-Allow-Origin *
header Access-Control-Allow-Credentials true
header Access-Control-Allow-Methods *
header Access-Control-Allow-Headers *
}
api.wubbl0rz.tv {
reverse_proxy localhost:8090
encode zstd gzip
root / /path/to/archiv/media
@not {
not path /vods /clips
}
reverse_proxy @not localhost:8090
}
meili.wubbl0rz.tv {
reverse_proxy localhost:7700
}
Meilisearch index is filled with wubbl0rz-archiv-transcribe.
A custom config is required for our indexes. Use the api to patch the index settings like so:
PATCH
http://localhost:7700/indexes/transcripts/settings/
{
"displayedAttributes": ["*"],
"searchableAttributes": ["text"],
"filterableAttributes": [],
"sortableAttributes": ["date", "duration", "viewcount"],
"rankingRules": [
"sort",
"words",
"typo",
"proximity",
"attribute",
"exactness"
]
}
PATCH
http://localhost:7700/indexes/vods/settings/
{
"displayedAttributes": ["*"],
"searchableAttributes": ["title"],
"filterableAttributes": [],
"sortableAttributes": ["date", "duration", "viewcount"],
"rankingRules": [
"sort",
"words",
"typo",
"proximity",
"attribute",
"exactness"
]
}
PATCH
http://localhost:7700/indexes/transcripts
{
"primaryKey": "meili_id"
}