blob: 3f4781eefc3cb84a113424bda8ed52e32557d094 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Copy this file to .env and adjust values for your setup.
# All EPUBE_* variables are read by the PHP application at runtime.
# Non-prefixed variables are consumed by Docker / Docker Compose.
# =============================================================================
# ---------------------------------------------------------------------------
# Docker / Registry
# ---------------------------------------------------------------------------
# PostgreSQL image used for the db service
DB_IMAGE=postgres:15-alpine
# Docker registry prefix (e.g. for a mirror or private registry)
# PROXY_REGISTRY=
# ---------------------------------------------------------------------------
# Network
# ---------------------------------------------------------------------------
# Host port mapping for the web server.
# Bind to 127.0.0.1 when behind a reverse proxy; omit for direct access.
HTTP_PORT=127.0.0.1:8480
# HTTP_PORT=8280
# ---------------------------------------------------------------------------
# Paths
# ---------------------------------------------------------------------------
# Local calibre library directory — mounted read-only as /books inside the app container
BOOKS_DIR=/home/user/calibre/Books
# Nginx document root (default: /var/www/html)
# Change to /var/www/html/books when APP_BASE is empty
# APP_WEB_ROOT=/var/www/html/books
# URL base path for the epube application (default: /books)
# Set to empty string to serve from the web root
# APP_BASE=/books
# ---------------------------------------------------------------------------
# Database
# ---------------------------------------------------------------------------
# Database type: sqlite (default) or pgsql
# EPUBE_DB_TYPE=sqlite
# PostgreSQL settings (used when EPUBE_DB_TYPE=pgsql)
# EPUBE_DB_HOST=db
# EPUBE_DB_PORT=5432
# EPUBE_DB_USER=postgres
# EPUBE_DB_NAME=postgres
# EPUBE_DB_PASS=password
# SQLite scratch database path (relative to app root)
# EPUBE_SCRATCH_DB=db/scratch.db
# Calibre metadata.db path (optional — defaults to /books/metadata.db inside container)
# EPUBE_CALIBRE_DB=/books/metadata.db
# ---------------------------------------------------------------------------
# Application
# ---------------------------------------------------------------------------
# Session lifetime in seconds (default: 2592000 = 30 days)
# EPUBE_SESSION_LIFETIME=2592000
# Session cookie name (default: epube_sid)
# EPUBE_SESSION_NAME=epube_sid
# Dict server hostname (for online dictionary lookups)
# EPUBE_DICT_SERVER=dict
# ---------------------------------------------------------------------------
# Authentication — Admin Bootstrap Account
# ---------------------------------------------------------------------------
# The admin user is created on first startup if it does not already exist.
# If EPUBE_ADMIN_PASS is left unset, a random password is generated and
# printed ONCE to the container log (docker logs <app-container>).
EPUBE_ADMIN_USER=admin
# EPUBE_ADMIN_PASS= # optional — set explicitly only if you insist on your own
# ---------------------------------------------------------------------------
# Authentication — OpenID Connect (OIDC)
# ---------------------------------------------------------------------------
# Uncomment and fill in to enable OIDC login.
# EPUBE_OIDC_URL=https://auth.example.org/application/o/epube/
# EPUBE_OIDC_NAME=My Identity Provider
# EPUBE_OIDC_CLIENT_ID=your-client-id
# EPUBE_OIDC_CLIENT_SECRET=your-client-secret
# ---------------------------------------------------------------------------
# Debugging
# ---------------------------------------------------------------------------
# Enable Xdebug (requires xdebug PHP extension installed)
# EPUBE_XDEBUG_ENABLED=1
# EPUBE_XDEBUG_HOST=172.17.0.1
# EPUBE_XDEBUG_PORT=9000
|