AppFlowy-GoTrue

AppFlowy-GoTrue

Docker 应用程序 from vmalinics0's Repository

概述

Step 4/7: GoTrue authentication service for AppFlowy Cloud — handles user sign-up, login, JWT issuance, OAuth, email magic links, and SAML. Part of the AppFlowy Cloud stack.

要求

Custom Docker network named "appflowy" must exist before deploying any container in this stack. Create it via SSH or the Unraid terminal: docker network create appflowy — Network Type is pre-set to "appflowy" by default, verify it is selected.

运行时参数

网络
custom:appflowy
外壳
sh
特权
false

模板配置

Base URLVariable

Public-facing GoTrue URL. Set to http://YOUR_SERVER_IP/gotrue (or your domain with /gotrue). Must be reachable by clients for OAuth redirects.

目标
API_EXTERNAL_URL
默认值
http://YOUR_SERVER_IP/gotrue
价值
http://YOUR_SERVER_IP/gotrue
Admin EmailVariable

Email address of the initial admin account created on first start.

目标
GOTRUE_ADMIN_EMAIL
默认值
admin@example.com
价值
admin@example.com
Admin PasswordVariable

Password for the initial admin account.

目标
GOTRUE_ADMIN_PASSWORD
默认值
changeme_admin_password
价值
changeme_admin_password
JWT SecretVariable

Shared JWT signing secret. MUST be identical to APPFLOWY_GOTRUE_JWT_SECRET in AppFlowy-Cloud. Minimum 32 characters. Keep private.

目标
GOTRUE_JWT_SECRET
默认值
changeme_jwt_secret_min32chars!!
价值
changeme_jwt_secret_min32chars!!
Database URLVariable

GoTrue PostgreSQL connection string. Update user, password, and host if you changed them. Uses the auth schema.

目标
DATABASE_URL
默认值
postgres://postgres:changeme_strong_password@AppFlowy-Postgres:5432/postgres?search_path=auth
价值
postgres://postgres:changeme_strong_password@AppFlowy-Postgres:5432/postgres?search_path=auth
JWT Expiry (seconds)Variable

JWT token lifetime in seconds. Default: 604800 (7 days).

目标
GOTRUE_JWT_EXP
默认值
604800
价值
604800
Auto-confirm EmailVariable

Set true to skip email confirmation (recommended for initial setup). Set false to require email confirmation — you must also configure SMTP.

目标
GOTRUE_MAILER_AUTOCONFIRM
默认值
true
价值
true
Disable Public SignupVariable

Set true to allow only invited users to sign up.

目标
GOTRUE_DISABLE_SIGNUP
默认值
false
价值
false
Rate Limit (emails/min)Variable

Maximum emails GoTrue can send per minute.

目标
GOTRUE_RATE_LIMIT_EMAIL_SENT
默认值
100
价值
100
DB DriverVariable

Database driver — always postgres.

目标
GOTRUE_DB_DRIVER
默认值
postgres
价值
postgres
Site URLVariable

Deep-link scheme for the AppFlowy native app.

目标
GOTRUE_SITE_URL
默认值
appflowy-flutter://
价值
appflowy-flutter://
URI Allow ListVariable

Allowed OAuth redirect URIs. ** permits all; restrict for production.

目标
GOTRUE_URI_ALLOW_LIST
默认值
**
价值
**
JWT Admin GroupVariable

JWT group name for admin users.

目标
GOTRUE_JWT_ADMIN_GROUP_NAME
默认值
supabase_admin
价值
supabase_admin
Internal PortVariable

GoTrue internal listen port. Do not change.

目标
PORT
默认值
9999
价值
9999
Mailer Confirm PathVariable

URL path for email confirmation links.

目标
GOTRUE_MAILER_URLPATHS_CONFIRMATION
默认值
/gotrue/verify
价值
/gotrue/verify
Mailer Invite PathVariable

URL path for invite links.

目标
GOTRUE_MAILER_URLPATHS_INVITE
默认值
/gotrue/verify
价值
/gotrue/verify
Mailer Recovery PathVariable

URL path for password recovery links.

目标
GOTRUE_MAILER_URLPATHS_RECOVERY
默认值
/gotrue/verify
价值
/gotrue/verify
Mailer Email-Change PathVariable

URL path for email-change confirmation links.

目标
GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE
默认值
/gotrue/verify
价值
/gotrue/verify
SMTP HostVariable

SMTP server hostname (e.g. smtp.gmail.com). Required if GOTRUE_MAILER_AUTOCONFIRM=false.

目标
GOTRUE_SMTP_HOST
SMTP PortVariable

SMTP port. Use 465 for TLS/SMTPS, 587 for STARTTLS.

目标
GOTRUE_SMTP_PORT
默认值
465
价值
465
SMTP UserVariable

SMTP sender email address.

目标
GOTRUE_SMTP_USER
SMTP PasswordVariable

SMTP password.

目标
GOTRUE_SMTP_PASS
SMTP Admin EmailVariable

Admin email used as the From address.

目标
GOTRUE_SMTP_ADMIN_EMAIL
SMTP Max FrequencyVariable

Minimum interval between emails to the same address. Use 1ns for no limit.

目标
GOTRUE_SMTP_MAX_FREQUENCY
默认值
1ns
价值
1ns
Magic Link Template URLVariable

Optional: public URL to a custom magic-link email HTML template.

目标
GOTRUE_MAILER_TEMPLATES_MAGIC_LINK
Google OAuth EnabledVariable

Enable Google OAuth login.

目标
GOTRUE_EXTERNAL_GOOGLE_ENABLED
默认值
false
价值
false
Google Client IDVariable

Google OAuth client ID.

目标
GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID
Google Client SecretVariable

Google OAuth client secret.

目标
GOTRUE_EXTERNAL_GOOGLE_SECRET
Google Redirect URIVariable

Google OAuth redirect URI.

目标
GOTRUE_EXTERNAL_GOOGLE_REDIRECT_URI
默认值
http://YOUR_SERVER_IP/gotrue/callback
价值
http://YOUR_SERVER_IP/gotrue/callback
GitHub OAuth EnabledVariable

Enable GitHub OAuth login.

目标
GOTRUE_EXTERNAL_GITHUB_ENABLED
默认值
false
价值
false
GitHub Client IDVariable

GitHub OAuth app client ID.

目标
GOTRUE_EXTERNAL_GITHUB_CLIENT_ID
GitHub Client SecretVariable

GitHub OAuth app client secret.

目标
GOTRUE_EXTERNAL_GITHUB_SECRET
GitHub Redirect URIVariable

GitHub OAuth redirect URI.

目标
GOTRUE_EXTERNAL_GITHUB_REDIRECT_URI
默认值
http://YOUR_SERVER_IP/gotrue/callback
价值
http://YOUR_SERVER_IP/gotrue/callback
Discord OAuth EnabledVariable

Enable Discord OAuth login.

目标
GOTRUE_EXTERNAL_DISCORD_ENABLED
默认值
false
价值
false
Discord Client IDVariable

Discord OAuth application client ID.

目标
GOTRUE_EXTERNAL_DISCORD_CLIENT_ID
Discord Client SecretVariable

Discord OAuth application client secret.

目标
GOTRUE_EXTERNAL_DISCORD_SECRET
Discord Redirect URIVariable

Discord OAuth redirect URI.

目标
GOTRUE_EXTERNAL_DISCORD_REDIRECT_URI
默认值
http://YOUR_SERVER_IP/gotrue/callback
价值
http://YOUR_SERVER_IP/gotrue/callback
SAML EnabledVariable

Enable SAML 2.0 single sign-on.

目标
GOTRUE_SAML_ENABLED
默认值
false
价值
false
SAML Private KeyVariable

PEM-encoded private key for SAML 2.0 signing.

目标
GOTRUE_SAML_PRIVATE_KEY

下载统计数据

327,951
下载总数

详细信息

存储库
appflowyinc/gotrue:latest
最后更新2026-05-25
初见2026-05-26

在Unraid 上运行 AppFlowy-GoTrue 。

AppFlowy-GoTrue 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。