Skip to main content

Configuration

PostPin is configured through environment variables, set in the .env file next to your compose.yml. Variables without a default are required. Values marked set by compose.yml are the same for every installation of the bundled stack; only set them if you run PostPin without it, e.g. with an external database or S3 storage.

Compose​

These only configure compose.yml itself:

VariableDefaultDescription
POSTPIN_VERSIONlatestImage tag to run, e.g. 1.4.2. latest follows every release, including new major versions.
POSTPIN_APP_IMAGEghcr.io/postpin-io/postpinImage of the app, without the tag. Only change it to run your own build.
POSTPIN_WORKER_IMAGEghcr.io/postpin-io/postpin-workerImage of the worker, without the tag. Only change it to run your own build.
APP_PORT3000Port on localhost the app listens on, for your reverse proxy.
S3_PORT9000Port on localhost the bundled rustfs listens on, for your reverse proxy.

App​

VariableDefaultDescription
BETTER_AUTH_URLPublic URL of your instance, e.g. https://postpin.example.com. Used for sign-in, links in emails and the S3 CORS rule. compose.yml also passes it to the app as ORIGIN, which form submissions are checked against.
BETTER_AUTH_SECRETSecret for signing sessions, at least 32 characters. Generate one with openssl rand -hex 32. Changing it signs everyone out.
ADMIN_EMAILS(empty)Comma-separated emails that get system admin access (/admin). Only applies once the address is verified.
LANDING_PAGEfalsetrue shows the PostPin landing page on / to visitors who aren't signed in. Off, / goes straight to the login.
SEO_INDEXINGfalseOff, /robots.txt asks crawlers to stay away and every page is sent with X-Robots-Tag: noindex, so your instance stays out of search results. true lets search engines index the landing page only, with a sitemap at /sitemap.xml; share links, the login and the app stay noindex.

Links to your legal pages. Each one shows in the footer and on share links once it is set; the terms and the data processing agreement are also linked on the sign-up page. Leave them empty to hide the links. If your instance is publicly reachable, you are the operator: you need your own imprint and privacy policy, and if other organizations use your instance, a data processing agreement with them (GDPR Art. 28).

VariableDefaultDescription
IMPRINT_URL(empty)Your imprint (Impressum), e.g. https://example.com/imprint.
PRIVACY_URL(empty)Your privacy policy.
TERMS_URL(empty)Your terms of service.
DPA_URL(empty)Your data processing agreement, linked on sign-up with the terms.

Only http:// and https:// URLs are accepted.

Database​

VariableDefaultDescription
POSTGRES_USERUser the bundled Postgres container is created with.
POSTGRES_PASSWORDPassword for that user.
POSTGRES_DBDatabase the bundled Postgres container is created with.
DATABASE_URLset by compose.ymlConnection URL used by app and worker, built from the three values above. Because the password becomes part of this URL, avoid characters like @ / : ? # in it.
SKIP_MIGRATIONSSet to true to skip database migrations on startup.

Storage​

See Storage and uploads for how the two endpoints work together.

VariableDefaultDescription
S3_ENDPOINThttp://rustfs:9000 (compose.yml)Endpoint app and worker use for all S3 operations. Set it in .env for an external provider; compose.yml falls back to the bundled rustfs.
S3_PUBLIC_ENDPOINTS3_ENDPOINTEndpoint in presigned URLs for browsers and plugins. Required with the bundled rustfs: the public URL your reverse proxy serves it on.
S3_FORCE_PATH_STYLEset by compose.yml (true)true for URLs like endpoint/bucket/key, which most self-hosted S3 servers (including rustfs) need.
S3_ACCESS_KEYAccess key. For the bundled rustfs this also sets its admin user.
S3_SECRET_KEYSecret key. For the bundled rustfs this also sets its admin password.
S3_BUCKETBucket for all media. Created on startup if it doesn't exist.
S3_REGIONRegion, e.g. eu-west-1. Self-hosted servers accept any value.

Storage limits​

See Storage limits for how quotas are counted and enforced.

VariableDefaultDescription
STORAGE_DEFAULT_ORG_QUOTA(empty, unlimited)Default quota per organization, e.g. 50 GB or 1.5 TiB (KB/MB/GB/TB are decimal, KiB/MiB/GiB/TiB binary).
STORAGE_DEFAULT_USER_QUOTA(empty, unlimited)Default quota per user, counted over the exports they uploaded in all organizations.
STORAGE_CAPACITY(empty)Total storage shown in the admin storage chart. Takes precedence over STORAGE_DISK_PATH. Set it to your rustfs bucket quota.
STORAGE_DISK_PATHset by compose.yml (/storage)A path on the storage disk; the chart shows its size and free space. Leave both this and STORAGE_CAPACITY empty to hide the chart.
UPLOAD_MAX_FILE_SIZE(empty, no limit)Largest file one upload may have, e.g. 20 GB, for the editor plugins and the web upload alike. Bigger uploads get HTTP 413.

Transcoding​

VariableDefaultDescription
TRANSCODE_MODEpluginWho encodes the streaming versions of an upload. plugin: the editor plugins encode them on the editor's computer and upload them with the render; the worker checks them and only encodes when a plugin can't. This takes load off your server. server: the worker always encodes them.

The streaming versions are 1080p, 720p and 480p, plus 2160p for uploads in 4K. Web uploads are always encoded by the worker.

Screenings​

VariableDefaultDescription
SCREENING_MAX_GUESTS100Highest guest limit a presenter can set for a screening, from 1 to 500. The dialog preselects 30, or this value if it is lower.

Queue​

VariableDefaultDescription
REDIS_HOSTset by compose.yml (redis)Redis host.
REDIS_PORTset by compose.yml (6379)Redis port.
REDIS_USE_SSLfalsetrue to connect via TLS.

Email​

PostPin sends email verification, password reset, invitation and share-link mails, and a short notice when an account is deleted. Without a working SMTP server the app still starts, but users can't verify their address or reset their password. send test on the admin page checks the setup.

VariableDefaultDescription
SMTP_HOSTSMTP server.
SMTP_PORTUsually 587 (STARTTLS) or 465 (TLS).
SMTP_SECUREfalsetrue for TLS from the start (port 465).
SMTP_USERSMTP user name.
SMTP_PASSWORDSMTP password.
SMTP_MAIL_FROMSMTP_USERSender address, e.g. "PostPin <noreply@example.com>".

Every mail has an HTML and a plain-text part and carries the logo as an inline attachment, so it needs no public image URL. Whether mails land in the inbox depends mostly on the sender domain: use a SMTP_MAIL_FROM address on a domain your SMTP server may send for, and set up SPF, DKIM and DMARC for it.

Sign-in​

Each provider appears as a button on the login and sign-up page, and under Connected accounts in the profile, once both its client ID and secret are set. See Sign-in methods for the redirect URIs to register.

VariableDefaultDescription
DISABLE_PASSWORD_LOGINfalsetrue hides email and password on login and sign-up; users sign in with SSO or a passkey only.
GOOGLE_CLIENT_ID(empty)Google OAuth client.
GOOGLE_CLIENT_SECRET(empty)
MICROSOFT_CLIENT_ID(empty)Microsoft Entra ID app registration.
MICROSOFT_CLIENT_SECRET(empty)
MICROSOFT_TENANT_IDcommonYour tenant ID, to allow only your organization's accounts.
GITHUB_CLIENT_ID(empty)GitHub OAuth app.
GITHUB_CLIENT_SECRET(empty)
APPLE_CLIENT_ID(empty)Services ID of "Sign in with Apple".
APPLE_CLIENT_SECRET(empty)A signed JWT, valid for 6 months at most. See Apple.
OIDC_DISCOVERY_URL(empty)Your identity provider's …/.well-known/openid-configuration (Keycloak, Authentik, Entra ID, …).
OIDC_CLIENT_ID(empty)
OIDC_CLIENT_SECRET(empty)
OIDC_NAMESingle sign-onLabel of the button, e.g. Acme SSO.