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:
| Variable | Default | Description |
|---|
POSTPIN_VERSION | latest | Image tag to run, e.g. 1.4.2. latest follows every release, including new major versions. |
POSTPIN_APP_IMAGE | ghcr.io/postpin-io/postpin | Image of the app, without the tag. Only change it to run your own build. |
POSTPIN_WORKER_IMAGE | ghcr.io/postpin-io/postpin-worker | Image of the worker, without the tag. Only change it to run your own build. |
APP_PORT | 3000 | Port on localhost the app listens on, for your reverse proxy. |
S3_PORT | 9000 | Port on localhost the bundled rustfs listens on, for your reverse proxy. |
App
| Variable | Default | Description |
|---|
BETTER_AUTH_URL | | Public 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_SECRET | | Secret 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_PAGE | false | true shows the PostPin landing page on / to visitors who aren't signed in. Off, / goes straight to the login. |
SEO_INDEXING | false | Off, /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. |
Legal links
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).
| Variable | Default | Description |
|---|
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
| Variable | Default | Description |
|---|
POSTGRES_USER | | User the bundled Postgres container is created with. |
POSTGRES_PASSWORD | | Password for that user. |
POSTGRES_DB | | Database the bundled Postgres container is created with. |
DATABASE_URL | set by compose.yml | Connection 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_MIGRATIONS | | Set to true to skip database migrations on startup. |
Storage
See Storage and uploads for how the two endpoints work together.
| Variable | Default | Description |
|---|
S3_ENDPOINT | http://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_ENDPOINT | S3_ENDPOINT | Endpoint in presigned URLs for browsers and plugins. Required with the bundled rustfs: the public URL your reverse proxy serves it on. |
S3_FORCE_PATH_STYLE | set by compose.yml (true) | true for URLs like endpoint/bucket/key, which most self-hosted S3 servers (including rustfs) need. |
S3_ACCESS_KEY | | Access key. For the bundled rustfs this also sets its admin user. |
S3_SECRET_KEY | | Secret key. For the bundled rustfs this also sets its admin password. |
S3_BUCKET | | Bucket for all media. Created on startup if it doesn't exist. |
S3_REGION | | Region, e.g. eu-west-1. Self-hosted servers accept any value. |
Storage limits
See Storage limits for how quotas are counted and enforced.
| Variable | Default | Description |
|---|
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_PATH | set 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
| Variable | Default | Description |
|---|
TRANSCODE_MODE | plugin | Who 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
| Variable | Default | Description |
|---|
SCREENING_MAX_GUESTS | 100 | Highest 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
| Variable | Default | Description |
|---|
REDIS_HOST | set by compose.yml (redis) | Redis host. |
REDIS_PORT | set by compose.yml (6379) | Redis port. |
REDIS_USE_SSL | false | true 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.
| Variable | Default | Description |
|---|
SMTP_HOST | | SMTP server. |
SMTP_PORT | | Usually 587 (STARTTLS) or 465 (TLS). |
SMTP_SECURE | false | true for TLS from the start (port 465). |
SMTP_USER | | SMTP user name. |
SMTP_PASSWORD | | SMTP password. |
SMTP_MAIL_FROM | SMTP_USER | Sender 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.
| Variable | Default | Description |
|---|
DISABLE_PASSWORD_LOGIN | false | true 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_ID | common | Your 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_NAME | Single sign-on | Label of the button, e.g. Acme SSO. |