Platform
The Platform API and web interface are released as a single container image(opens in new tab). Provide a separate PostgreSQL database, an SMTP server, and an HTTPS reverse proxy for public access. Compute runs your Solutions and is installed separately.
bashdocker run ghcr.io/xlonglink/longlink:latest
Environment variables
See the environment example(opens in new tab) for their settings.
| Environment variables |
|---|
PUBLIC_URL Public HTTPS origin without a path. HTTP is allowed only for loopback development.string · default: http://localhost:5173 |
SESSION_KEY Session signing secret with at least 32 characters. Keep stable across restarts and replicas.string · required |
ENCRYPTION_KEY Encrypts stored infrastructure credentials. At least 32 characters; retain and back up this key.string · required |
ADMIN_EMAIL Platform administrator email. The sole administrator is reconciled on startup.email · required |
ADMIN_PASSWORD Platform administrator password, reconciled on startup. Use a strong password.string · required |
DATABASE_URL Platform database connection URL, including its asynchronous driver, credentials, and database name.string · required |
SMTP_HOST SMTP server for account verification and password reset emails.string · required |
SMTP_PORT SMTP server port, from 1 to 65535.integer · default: 587 |
SMTP_TRANSPORT SMTP connection security. Use starttls or tls for hosted deployments."plain" | "starttls" | "tls" · default: starttls |
SMTP_FROM Sender address. Configure an address your SMTP provider permits.email · default: no-reply@longlink.dev |
SMTP_USERNAME SMTP authentication username. Configure together with SMTP_PASSWORD or omit both.string · optional |
SMTP_PASSWORD SMTP authentication password. Requires SMTP_USERNAME.string · optional |
GOOGLE_OAUTH_CLIENT_ID Enables Google sign-in when configured with GOOGLE_OAUTH_CLIENT_SECRET.string · optional |
GOOGLE_OAUTH_CLIENT_SECRET Google OAuth client secret. Requires GOOGLE_OAUTH_CLIENT_ID.string · optional |
GITHUB_OAUTH_CLIENT_ID Enables GitHub sign-in when configured with GITHUB_OAUTH_CLIENT_SECRET.string · optional |
GITHUB_OAUTH_CLIENT_SECRET GitHub OAuth client secret. Requires GITHUB_OAUTH_CLIENT_ID.string · optional |
STRIPE_SECRET_KEY Stripe secret or restricted API key. Configure with STRIPE_WEBHOOK_SECRET to enable payments.string · optional |
STRIPE_WEBHOOK_SECRET Stripe webhook signing secret beginning with whsec_. Requires STRIPE_SECRET_KEY.string · optional |