69650b6464
Make 42776 the project's default listen port everywhere :8080 was the default: .env.example, the Go config fallback, the Dockerfile (ENV/EXPOSE/healthcheck), and the docs example. 42776 is the sum of the Unicode code points of 七夕 (七 U+4E03 = 19971, 夕 U+5915 = 22805). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
57 lines
2.3 KiB
Bash
57 lines
2.3 KiB
Bash
# =============================================================================
|
|
# Tanabata File Manager — environment variables
|
|
# Copy to .env and fill in the values.
|
|
# =============================================================================
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Server
|
|
# ---------------------------------------------------------------------------
|
|
# 42776 is the project's default port: the sum of the Unicode code points of
|
|
# 七夕 (七 U+4E03 = 19971, 夕 U+5915 = 22805).
|
|
LISTEN_ADDR=:42776
|
|
JWT_SECRET=change-me-to-a-random-32-byte-secret
|
|
JWT_ACCESS_TTL=15m
|
|
JWT_REFRESH_TTL=720h
|
|
|
|
# Initial administrator, created on first startup if it does not yet exist.
|
|
# Changing the password later (via the API) is preserved across restarts.
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=change-me-before-first-run
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Database
|
|
# ---------------------------------------------------------------------------
|
|
DATABASE_URL=postgres://tanabata:password@localhost:5432/tanabata?sslmode=disable
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Storage
|
|
# ---------------------------------------------------------------------------
|
|
FILES_PATH=/data/files
|
|
THUMBS_CACHE_PATH=/data/thumbs
|
|
|
|
# Maximum accepted upload size in bytes (default 500 MiB).
|
|
MAX_UPLOAD_BYTES=524288000
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Thumbnails
|
|
# ---------------------------------------------------------------------------
|
|
THUMB_WIDTH=160
|
|
THUMB_HEIGHT=160
|
|
PREVIEW_WIDTH=1920
|
|
PREVIEW_HEIGHT=1080
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Import
|
|
# ---------------------------------------------------------------------------
|
|
IMPORT_PATH=/data/import
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Static SPA
|
|
# ---------------------------------------------------------------------------
|
|
# Directory of the built frontend (index.html, _app/, fonts, service worker).
|
|
# When set, the server serves the SPA and the API on the same port, with a
|
|
# fallback to index.html for client-side routes. Leave empty in local
|
|
# development — the Vite dev server serves the UI separately. The Docker image
|
|
# sets this to /app/static.
|
|
STATIC_DIR=
|