Files
reader-api/.env.example
T
virtus bddd592146
Build and Push Reader API Image / docker (push) Successful in 14s
feat(auth, epub): enhance Google token verification and EPUB chapter extraction
- Added Google token verification logic to improve security and ensure valid tokens are processed.
- Introduced functions for extracting chapters from EPUB files based on HTML tags, including support for chapter markers.
- Updated `.env.example` to include configuration for an OpenAI-compatible router.
- Refactored existing functions for better readability and maintainability.
2026-05-19 00:15:20 +07:00

24 lines
881 B
Bash

# PostgreSQL
DATABASE_URL=postgresql://reader:reader@localhost:5432/reader
# Auth / OAuth
NEXTAUTH_SECRET=replace-with-strong-secret
MOBILE_JWT_SECRET=replace-with-strong-secret
# Comma-separated allowed Google OAuth client IDs (web + android if needed)
GOOGLE_CLIENT_ID=web-client-id.apps.googleusercontent.com,android-client-id.apps.googleusercontent.com
# Reader web (NextAuth) Google OAuth (single web client)
WEB_GOOGLE_CLIENT_ID=web-client-id.apps.googleusercontent.com
WEB_GOOGLE_CLIENT_SECRET=replace-with-web-google-client-secret
# CORS (comma-separated), * for all in local dev
CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# Environment label
APP_ENV=development
# OpenAI-compatible router (9router / OpenRouter) cho AI gợi ý EPUB import
# Liệt kê model: GET {ROUTER_BASE_URL}/models
ROUTER_BASE_URL=http://192.168.100.146:20128/v1
ROUTER_API_KEY=