Files
cxyz/docker-compose.yml
T
nsrb 704394169a Add authentication feature with session management
- Implemented authentication logic in src/server/auth.js, including session token creation and verification.
- Integrated authentication routes for login, logout, and user session retrieval in the Fastify server.
- Updated docker-compose.yml to include optional authentication environment variables.
- Added @fastify/cookie dependency for cookie management in package.json and package-lock.json.
- Enhanced the frontend with login form and session handling in App.svelte, including UI updates for authenticated states.
- Styled authentication components in app.css for better user experience.
2026-08-03 07:50:00 +07:00

32 lines
892 B
YAML

services:
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
environment:
LOG_LEVEL: info
ports:
- "8191:8191"
restart: unless-stopped
cxyz:
build: .
ports:
- "3000:3000"
environment:
PORT: "3000"
DATA_DIR: /app/data
# Wake hourly; sync at most one due title per wake.
WATCH_CRON: "0 * * * *"
# Each title is eligible again after this many hours (daily).
WATCH_TITLE_INTERVAL_HOURS: "24"
FLARESOLVERR_URL: http://flaresolverr:8191/v1
# Shared login (optional). When AUTH_PASSWORD is set, the UI and /api require a session.
# AUTH_USERNAME: admin
# AUTH_PASSWORD: change-me
# SESSION_SECRET: long-random-string-at-least-32-chars
# SESSION_TTL_HOURS: "168"
volumes:
- ./data:/app/data
depends_on:
- flaresolverr
restart: unless-stopped