Game Boy Camera Gallery is a web app to organise, edit and share shots taken with the Game Boy Camera.
Check the published version on GitHub-Pages
This image includes the newest version of the WebApp and the API
This is currently a single user setup.
Authorization/Authentcation via Discord OAuth (see below)
Build image and start containter locally
docker compose up -d --build --force-recreateUse the published package (adjust env vars to your needs)
docker pull ghcr.io/herrzatacke/gb-items-db:latest
docker run -p 3001:3001 `
-e GB_ITEMS_DB_ALLOWED_ORIGINS=https://herrzatacke.github.io/ `
-e GB_ITEMS_DB_PORT=3001 `
-e GB_ITEMS_PUBLIC_ORIGIN=https://your-domain.example `
-e SESSION_SECRET_KEY=your-64-character-hex-key `
-e DISCORD_CLIENT_ID=your-discord-client-id `
-e DISCORD_CLIENT_SECRET=your-discord-client-secret `
-e DISCORD_ALLOWED_USER_IDS=123456789012345678,234567890123456789 `
-v gb-items-db-data:/app/packages/gb-items-db/database `
ghcr.io/herrzatacke/gb-items-db:latestIf
DISCORD_CLIENT_IDandDISCORD_CLIENT_SECRETare left unset, the app runs with no authentication at all - intended for setups where access is restricted some other way (e.g. a reverse proxy, VPN, or network-level restriction).
| Variable | Required | Description |
|---|---|---|
GB_ITEMS_DB_ALLOWED_ORIGINS |
Yes | Comma-separated list of origins allowed to make CORS requests to the API (e.g. the URL your frontend is hosted at). |
GB_ITEMS_DB_PORT |
Yes | Port the server listens on inside the container. |
GB_ITEMS_PUBLIC_ORIGIN |
Only if using Discord auth | The public URL the app is reachable at (e.g. https://your-domain.example). Used to build the Discord OAuth2 callback URL. |
SESSION_SECRET_KEY |
Only if using Discord auth | 32-byte hex key used to encrypt session cookies. Generate with node -e "console.log(require('crypto').randomBytes(32).toString('hex'))". Keep this secret and stable - changing it invalidates all existing sessions. |
DISCORD_CLIENT_ID |
Only if using Discord auth | Client ID from your Discord application, used to initiate the OAuth2 login flow. |
DISCORD_CLIENT_SECRET |
Only if using Discord auth | Client secret from your Discord application. Keep this secret. |
DISCORD_ALLOWED_USER_IDS |
No | Comma-separated whitelist of Discord user IDs allowed to log in. Leave unset to allow any Discord account. |
This repository is a pnpm workspace containing the packages that make up gb-printer-web.
Install dependencies from the repo root:
pnpm installStart dev mode
pnpm devBuild the main project
pnpm buildpackages/gb-printer-web- The main applicationpackages/gb-printer-schemas- Holding schemas and types for cross-project item typespackages/gb-items.source- The transport-agnostic query and mutation logic
See LICENSE.
Running your own server means you're responsible for securing it - and for following applicable data protection guidelines (e.g. GDPR) for whatever data you store.
This project provides application-level authentication (Discord OAuth2), but it's not a substitute for good infrastructure practices - use HTTPS in production, keep your secrets (SESSION_SECRET_KEY,DISCORD_CLIENT_SECRET, etc...) out of version control, and consider whether you also want network-level protections (a reverse proxy, VPN, firewall rules) depending on what you're exposing and to whom.
If you disable OAuth entirely, the app has no access control of its own - that setup assumes you're restricting access some other way.
Nobody else can guarantee your deployment is secure; that's on you.