homelab-codex-ws/services/paperless/env.example

31 lines
1.8 KiB
Plaintext

# Paperless secrets + host-local binds — copy to .env (gitignored) next to
# docker-compose.yml and fill in real values. Never commit .env.
# LAN IP of PIHA. All published ports (web 8210, postgres 5434, redis 6380)
# bind ONLY to this interface — never 0.0.0.0. The OCR worker on SOLARIA
# connects over the same LAN. Verify after host rebuilds: ip -4 addr.
LAN_BIND_IP=192.168.31.5
# Django secret key. Generate once (e.g. openssl rand -base64 48), then never
# change — MUST be identical in services/paperless-worker/.env on SOLARIA.
PAPERLESS_SECRET_KEY=change-me-long-random-string
# Postgres password for the paperless DB. Both values MUST be identical
# (POSTGRES_PASSWORD initializes the DB, PAPERLESS_DBPASS is how the app
# connects). The worker on SOLARIA uses the same value.
POSTGRES_PASSWORD=change-me-very-strong
PAPERLESS_DBPASS=change-me-very-strong
# OIDC provider config (django-allauth openid_connect) — single-line JSON.
# Lives in .env because it embeds the Forgejo OAuth2 client secret.
# Register the app in Forgejo: Settings > Applications >
# Redirect URI: https://paper.kapala.org/accounts/oidc/forgejo/login/callback/
# then paste client_id + secret below.
# TODO DECYZJA OSKARA: potwierdzic domene paper.kapala.org przed rejestracja w Forgejo.
PAPERLESS_SOCIALACCOUNT_PROVIDERS={"openid_connect":{"SCOPE":["openid","profile","email"],"OAUTH_PKCE_ENABLED":true,"APPS":[{"provider_id":"forgejo","name":"Forgejo","client_id":"CHANGE-ME-CLIENT-ID","secret":"CHANGE-ME-CLIENT-SECRET","settings":{"server_url":"https://forgejo.kapala.org/.well-known/openid-configuration"}}]}}
# Bootstrap admin (local login) — used until OIDC is verified, then consider
# PAPERLESS_DISABLE_REGULAR_LOGIN=true in docker-compose.yml.
PAPERLESS_ADMIN_USER=oskar
PAPERLESS_ADMIN_PASSWORD=change-me-bootstrap-only