# 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 ). 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