Configuration
What's the difference between ORIGIN and BETTER_AUTH_URL?
Both should usually be set to the same value:
- ORIGIN: Trusted origin for CSRF protection (your external URL)
- BETTER_AUTH_URL: Base URL for authentication callbacks
Example:
environment:
- ORIGIN=https://cinephage.yourdomain.com
- BETTER_AUTH_URL=https://cinephage.yourdomain.com
Why can't I access Cinephage externally?
Common causes:
- Firewall - Port 3000 (or your custom port) not open
- ORIGIN not set - Must set ORIGIN environment variable
- BETTER_AUTH_URL not set - Required for external access
- Host binding - Use 0.0.0.0 not 127.0.0.1
How do I configure PUID/PGID?
Get your IDs:
id -u # User ID
id -g # Group ID
Docker Compose:
environment:
- PUID=1000
- PGID=1000
This ensures files are created with correct ownership.
Why are my file permissions wrong?
Check PUID/PGID:
# Check current IDs
id
# Check file ownership
ls -la /path/to/media
Fix permissions:
# Docker
sudo chown -R 1000:1000 ./config
# Or run container as your user
docker run --user $(id -u):$(id -g) ...
Quick Command Reference
Get user/group IDs:
id
Fix permissions:
sudo chown -R $(id -u):$(id -g) ./config
Check environment variables:
docker compose exec cinephage env | grep -E "(ORIGIN|PUID|PGID)"
See Also
- Installation Guide - Environment setup
- Installation FAQ - Docker and setup questions
- Troubleshooting - Permission and access issues