Skip to content

Configuration

Aulteran edited this page Nov 6, 2026 · 2 revisions

Set these in .env next to compose.yaml, then run docker compose up -d --wait. Empty means off, unless the default is listed. Keep .env private (chmod 600).

Required and core

Variable Default Purpose
FILECANOPY_VERSION none Image version or tag (beta, 1.0.0). Required.
FILECANOPY_IMAGE_PREFIX ghcr.io/aulteran/filecanopy Image name prefix. Change it only for images you built yourself.
POSTGRES_PASSWORD none Database password. Required. Use URL-safe characters.
COMPOSE_PROJECT_NAME filecanopy Project name. Unique per installation. Do not change it on an existing install.
FILECANOPY_LIBRARY_PATH ./library Host folder for your files. Must be owned by the UID/GID below.
FILECANOPY_APP_DATA_PATH ./app-data Host folder for private app state and secrets.
FILECANOPY_UID / FILECANOPY_GID 10001 User the API runs as.
FILECANOPY_HTTP_PORT 8080 Host port on 127.0.0.1 for the web app.
FILECANOPY_SETUP_TOKEN empty Fixed setup token. Empty means a one-time token is printed in the API log.
FILECANOPY_COOKIE_SECURE true Keep true. Cookies are sent only over HTTPS.

Reverse proxy

Variable Default Purpose
FILECANOPY_PUBLIC_URL empty The address people type, for example https://files.example.org. No path. Needed for mail links and OIDC.
FILECANOPY_ALLOWED_ORIGINS empty Extra allowed origins, comma-separated.
FILECANOPY_TRUSTED_PROXIES empty Exact address or range of your proxy, as the web container sees it. Empty trusts nobody. Ranges wider than /8 (IPv4) or /16 (IPv6) are refused.
FILECANOPY_HSTS false Send Strict-Transport-Security once HTTPS works for good.

Sign-in, mail and OIDC

Variable Default Purpose
FILECANOPY_SMTP_HOST empty Outbound mail for invitations and password resets. Needs FILECANOPY_PUBLIC_URL. Empty means links are shared by the administrator.
FILECANOPY_SMTP_PORT 587 SMTP port.
FILECANOPY_SMTP_SECURITY starttls starttls or ssl.
FILECANOPY_SMTP_USERNAME / _PASSWORD empty SMTP login.
FILECANOPY_SMTP_FROM empty Sender address.
FILECANOPY_SMTP_ALLOW_PLAINTEXT false Allow unencrypted SMTP. Avoid it.
FILECANOPY_IMAP_HOST empty Inbound mailbox (read-only). See Importing files.
FILECANOPY_IMAP_PORT 993 IMAP port.
FILECANOPY_IMAP_SECURITY ssl ssl, starttls, or none (same machine only).
FILECANOPY_IMAP_USERNAME / _PASSWORD empty Use an app password.
FILECANOPY_IMAP_FOLDER INBOX Folder to read.
FILECANOPY_IMAP_POLL_SECONDS 120 Polling interval.
FILECANOPY_IMAP_PERSONAL_ADDRESS / _INGEST_ADDRESS empty The two intake addresses. They must differ.
FILECANOPY_IMAP_AUTHSERV_ID empty Required to accept any mail. The name in your provider's Authentication-Results header.
FILECANOPY_IMAP_AUTH_POLICY aligned aligned or dmarc.
FILECANOPY_IMAP_RECIPIENT_HEADERS x-original-to,delivered-to Headers that carry the real recipient.
FILECANOPY_OIDC_ISSUER empty Single sign-on issuer (Authentik, Authelia, Keycloak, Google). Empty means off. Password sign-in always stays available.
FILECANOPY_OIDC_CLIENT_ID / _CLIENT_SECRET empty OIDC client credentials.
FILECANOPY_OIDC_LABEL Single sign-on Button label.
FILECANOPY_OIDC_SCOPES openid email profile Requested scopes.
FILECANOPY_OIDC_REQUIRE_EMAIL_VERIFIED true Require a verified email claim.
FILECANOPY_OIDC_HOSTED_DOMAIN empty Google Workspace only: required hd claim.
FILECANOPY_OIDC_ALLOW_HTTP false Allow an issuer over plain HTTP. Avoid it.
FILECANOPY_FORCE_LOCAL_LOGIN false Break-glass: true ignores a provider-only setting at startup.
FILECANOPY_PIN_PEPPER empty Optional 32+ character secret for Confidential PINs. Empty means a generated one in app-data.

Files and imports

Variable Default Purpose
FILECANOPY_MAX_UPLOAD_BYTES 10 GiB Upload size cap per file.
FILECANOPY_MAX_IMPORT_ENTRIES 100000 Entries per import batch.
FILECANOPY_MAX_ZIP_BYTES 10 GiB Zip file size cap.
FILECANOPY_MAX_ZIP_UNCOMPRESSED_BYTES 50 GiB Zip uncompressed size cap.
FILECANOPY_IMPORT_ENTRY_RETENTION_DAYS 90 How long import entries are kept.
FILECANOPY_MAX_OPEN_FOLDER_UPLOADS 5 Folder uploads open at once.
FILECANOPY_SCAN_PAUSE_CEILING_SECONDS 1800 Upper limit on a paused scan.

Search, previews and OCR

Variable Default Purpose
FILECANOPY_SEARCH_ENABLED true Index text for full-text search. false keeps filename search only.
FILECANOPY_CONVERTER_URL empty Set to unix:///run/converter/converter.sock with the converter profile for Office previews.
FILECANOPY_OCR_URL empty Set to unix:///run/ocr/ocr.sock with the ocr profile for scanned PDFs and pictures.
FILECANOPY_AI_LOCAL_HOSTS empty Comma-separated host names allowed for local AI and embedding endpoints. Empty allows any private address.
FILECANOPY_SEMANTIC_PAUSE_MS 200 Pause after each embedding request, to keep a CPU-only host responsive.
FILECANOPY_SEMANTIC_MIN_SCORE 0.3 Minimum similarity for semantic results.
FILECANOPY_MCP_ENABLED false Turn on the read-only MCP interface.

Secrets and backups

Variable Default Purpose
FILECANOPY_SECRETS_KEY empty 32 random bytes in base64 (openssl rand -base64 32). Needed to store cloud AI keys and remote backup credentials. Keep it outside the library and database dump.
FILECANOPY_BACKUP_PATH empty Host folder for in-app backups. Set it together with docker-compose.backup.yml. It must be on a separate disk.
FILECANOPY_BACKUP_ALLOW_PRIVATE_DESTINATIONS false Allow remote backup destinations on a private network (a NAS, a local MinIO).

Profiles and workers

Setting Purpose
COMPOSE_PROFILES=converter Start the sealed Office converter.
COMPOSE_PROFILES=ocr Start the sealed OCR container.
COMPOSE_PROFILES=workers Start the optional heartbeat tier (Redis and a worker).
FILECANOPY_REDIS_URL redis://redis:6379/0 when the workers profile is on. Not needed for file operations.

Profiles are not AI providers. The core install does not need any of them.

Clone this wiki locally