mirror of
https://github.com/traberph/short.git
synced 2026-11-22 22:55:12 +00:00
v2: rewrite on Hono + SQLite with user namespaces
Replaces the Next.js/Prisma/next-auth app with a single-container Hono server, SQLite via Drizzle, OIDC login against Authentik and a React/Vite admin UI that talks to a JSON API. - users get /<username>/<code>, admins (Authentik group) get root codes, pinning and full access - link pages with link and Markdown text blocks, themes, avatars - editable 302 redirects, random or custom codes - personal API tokens, CSRF-protected cookie sessions - privacy-friendly stats: daily-rotating visitor salt, 90-day click retention with daily totals kept - QR codes as PNG/SVG - tests for permissions, auth, redirects and stats; CI runs them before publishing images See REQUIREMENTS.md for the full requirement list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+24
-11
@@ -1,14 +1,27 @@
|
||||
# Authentication *required*
|
||||
AUTH_AUTHENTIK_SECRET=
|
||||
AUTH_SECRET=
|
||||
AUTH_TRUST_HOST=https://traberph.de
|
||||
NEXTAUTH_URL=https://traberph.de
|
||||
# Public base URL of this instance *required*
|
||||
BASE_URL=https://short.example.com
|
||||
|
||||
# Database *required*
|
||||
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
|
||||
# OIDC (Authentik) *required*
|
||||
# Issuer is the provider's "OpenID Configuration Issuer", e.g. https://auth.example.com/application/o/short/
|
||||
OIDC_ISSUER=
|
||||
OIDC_CLIENT_ID=
|
||||
OIDC_CLIENT_SECRET=
|
||||
# Members of this Authentik group are admins
|
||||
ADMIN_GROUP=short-admins
|
||||
|
||||
# Attribution *optional*
|
||||
# Random secret for signing cookies, e.g. `openssl rand -base64 32` *required*
|
||||
SESSION_SECRET=
|
||||
|
||||
# Where the SQLite database and uploaded avatars are stored
|
||||
DATA_DIR=./data
|
||||
|
||||
# Timezone used for "today" and the daily stats
|
||||
TIMEZONE=Europe/Berlin
|
||||
|
||||
# Set when running behind a reverse proxy, so X-Forwarded-For is used for the visitor IP
|
||||
TRUST_PROXY=true
|
||||
|
||||
# Optional
|
||||
#LOGO_DEV_TOKEN=
|
||||
#DISABLE_ATTRIBUTION=true
|
||||
|
||||
# Logo.dev *optional*
|
||||
#LOGO_DEV_TOKEN=
|
||||
#PORT=3000
|
||||
|
||||
Reference in New Issue
Block a user