🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🔨 chore: add docker compose to setup local services for development (#8608)
Asuka109d1c564551749
diff --git a/.env.development b/.env.developmentnew file mode 100644index 00000000000..74aae9a496e--- /dev/null+++ b/.env.development@@ -0,0 +1,122 @@+# LobeChat Development Server Configuration+# This file contains environment variables for both LobeChat server mode and Docker compose setup++COMPOSE_FILE="docker-compose.development.yml"++# ⚠️⚠️⚠️ DO NOT USE THE SECRETS BELOW IN PRODUCTION!+UNSAFE_SECRET="ww+0igxjGRAAR/eTNFQ55VmhQB5KE5trFZseuntThJs="+UNSAFE_PASSWORD="CHANGE_THIS_PASSWORD_IN_PRODUCTION"++# Core Server Configuration+# Service mode - set to 'server' for server-side deployment+NEXT_PUBLIC_SERVICE_MODE=server++# Service Ports Configuration+LOBE_PORT=3010++# Application URL - the base URL where LobeChat will be accessible+APP_URL=http://localhost:${LOBE_PORT}++# Secret key for encrypting vault data (generate with: openssl rand -base64 32)+KEY_VAULTS_SECRET=${UNSAFE_SECRET}++# Database Configuration+# Database name for LobeChat+LOBE_DB_NAME=lobechat++# PostgreSQL password+POSTGRES_PASSWORD=${UNSAFE_PASSWORD}++# PostgreSQL database connection URL+DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432/${LOBE_DB_NAME}++# Database driver type+DATABASE_DRIVER=node++# Authentication Configuration+# Enable NextAuth authentication+NEXT_PUBLIC_ENABLE_NEXT_AUTH=1++# NextAuth secret for JWT signing (generate with: openssl rand -base64 32)+NEXT_AUTH_SECRET=${UNSAFE_SECRET}++NEXTAUTH_URL=${APP_URL}++# Authentication URL+AUTH_URL=${APP_URL}/api/auth++# SSO providers configuration - using Casdoor for development+NEXT_AUTH_SSO_PROVIDERS=casdoor++# Casdoor Configuration+# Casdoor service port+CASDOOR_PORT=8000++# Casdoor OIDC issuer URL+AUTH_CASDOOR_ISSUER=http://localhost:${CASDOOR_PORT}++# Casdoor application client ID+AUTH_CASDOOR_ID=a387a4892ee19b1a2249 # DO NOT USE IN PROD++# Casdoor application client secret+AUTH_CASDOOR_SECRET=dbf205949d704de81b0b5b3603174e23fbecc354 # DO NOT USE IN PROD++# Origin URL for Casdoor internal configuration+origin=http://localhost:${CASDOOR_PORT}++# MinIO Storage Configuration+# MinIO service port+MINIO_PORT=9000++# MinIO root user (admin username)+MINIO_ROOT_USER=admin++# MinIO root password+MINIO_ROOT_PASSWORD=${UNSAFE_PASSWORD}++# MinIO bucket for LobeChat files+MINIO_LOBE_BUCKET=lobe++# S3/MinIO Configuration for LobeChat+# S3/MinIO access key ID+S3_ACCESS_KEY_ID=${MINIO_ROOT_USER}++# S3/MinIO secret access key+S3_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD}++# S3/MinIO endpoint URL+S3_ENDPOINT=http://localhost:${MINIO_PORT}++# S3 bucket name for storing files+S3_BUCKET=${MINIO_LOBE_BUCKET}++# Public domain for S3 file access+S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}++# Enable path-style S3 requests (required for MinIO)+S3_ENABLE_PATH_STYLE=1++# Disable S3 ACL setting (for MinIO compatibility)+S3_SET_ACL=0++# Use base64 encoding for LLM vision images+LLM_VISION_IMAGE_USE_BASE64=1++# Search Service Configuration+# SearXNG search engine URL+SEARXNG_URL=http://searxng:8080++# Development Options+# Uncomment to skip authentication during development++# Proxy Configuration (Optional)+# Uncomment if you need proxy support (e.g., for GitHub auth or API access)+# HTTP_PROXY=http://localhost:7890+# HTTPS_PROXY=http://localhost:7890++# AI Model Configuration (Optional)+# Add your AI model API keys and configurations here+# ⚠️ WARNING: Never commit real API keys to version control!+# OPENAI_API_KEY=sk-NEVER_USE_REAL_API_KEYS_IN_CONFIG_FILES+# OPENAI_PROXY_URL=https://api.openai.com/v1+# OPENAI_MODEL_LIST=...diff --git a/.npmrc b/.npmrcindex b33bd6ef611..e51c1c20ecd 100644--- a/.npmrc+++ b/.npmrc@@ -4,6 +4,9 @@ resolution-mode=highestignore-workspace-root-check=trueenable-pre-post-scripts=true+# Load dotenv files for all the npm scripts+node-options="--require dotenv-expand/config"+public-hoist-pattern[]=*@umijs/lint*public-hoist-pattern[]=*changelog*public-hoist-pattern[]=*commitlint*diff --git a/docker-compose.development.yml b/docker-compose.development.ymlnew file mode 100644index 00000000000..f7dd5737ed0--- /dev/null+++ b/docker-compose.development.yml@@ -0,0 +1,40 @@+name: lobe-chat-development+services:+ network-service:+ image: alpine+ container_name: lobe-network+ restart: always+ ports:+ - '${MINIO_PORT}:${MINIO_PORT}' # MinIO API+ - '9001:9001' # MinIO Console+ - '${CASDOOR_PORT}:${CASDOOR_PORT}' # Casdoor+ command: tail -f /dev/null+ networks:+ - lobe-network++ postgresql:+ extends:+ file: docker-compose/local/docker-compose.yml+ service: postgresql+ minio:+ extends:+ file: docker-compose/local/docker-compose.yml+ service: minio+ casdoor:+ extends:+ file: docker-compose/local/docker-compose.yml+ service: casdoor+ searxng:+ extends:+ file: docker-compose/local/docker-compose.yml+ service: searxng++volumes:+ data:+ driver: local+ s3_data:+ driver: local++networks:+ lobe-network:+ driver: bridgediff --git a/docker-compose/local/.gitignore b/docker-compose/local/.gitignorenew file mode 100644index 00000000000..897709ffefe--- /dev/null+++ b/docker-compose/local/.gitignore@@ -0,0 +1,2 @@+data/+s3_data/\ No newline at end of filediff --git a/docker-compose/local/init_data.json b/docker-compose/local/init_data.jsonindex e6989196372..f6839669c06 100644--- a/docker-compose/local/init_data.json+++ b/docker-compose/local/init_data.json@@ -1,557 +1,919 @@{- "organizations": [+ "adapters": [+ {+ "owner": "built-in",+ "name": "api-adapter-built-in",+ "createdTime": "2025-08-11T08:43:25Z",+ "table": "casbin_api_rule",+ "useSameDb": true,+ "type": "",+ "databaseType": "",+ "host": "",+ "port": 0,+ "user": "",+ "password": "",+ "database": ""+ },+ {+ "owner": "built-in",+ "name": "user-adapter-built-in",+ "createdTime": "2025-08-11T08:43:25Z",+ "table": "casbin_user_rule",+ "useSameDb": true,+ "type": "",+ "databaseType": "",+ "host": "",+ "port": 0,+ "user": "",+ "password": "",+ "database": ""+ }+ ],+ "applications": [{"owner": "admin","name": "lobechat",- "createdTime": "2025-08-11T16:57:04+08:00",+ "createdTime": "2025-08-11T17:06:30+08:00","displayName": "LobeChat",- "websiteUrl": "https://lobehub.com","logo": "https://lobehub.com/icon-192x192.png",- "logoDark": "",- "favicon": "https://lobehub.com/favicon.ico",- "hasPrivilegeConsent": false,- "passwordType": "plain",- "passwordSalt": "",- "passwordOptions": [- "AtLeast6"- ],- "passwordObfuscatorType": "Plain",- "passwordObfuscatorKey": "",- "passwordExpireDays": 0,- "countryCodes": [- "US"- ],- "defaultAvatar": "https://lobehub.com/favicon.ico",- "defaultApplication": "",- "userTypes": null,- "tags": [],- "languages": [- "en",- "es",- "fr",- "de",- "zh",- "id",- "ja",- "ko",- "ru",- "vi",- "pt",- "it",- "ms",- "tr",- "ar",- "he",- "nl",- "pl",- "fi",- "sv",- "uk",- "kk",- "fa",- "cs",- "sk"- ],- "themeData": null,- "masterPassword": "",- "defaultPassword": "",- "masterVerificationCode": "",- "ipWhitelist": "",- "initScore": 0,- "enableSoftDeletion": false,- "isProfilePublic": true,- "useEmailAsUsername": false,- "enableTour": true,+ "homepageUrl": "https://lobehub.com",+ "description": "",+ "organization": "lobechat",+ "cert": "cert-built-in",+ "defaultGroup": "",+ "headerHtml": "",+ "enablePassword": true,+ "enableSignUp": false,"disableSignin": false,- "ipRestriction": "",- "navItems": null,- "widgetItems": null,- "mfaItems": null,- "mfaRememberInHours": 12,- "accountItems": [+ "enableSigninSession": false,+ "enableAutoSignin": false,+ "enableCodeSignin": false,+ "enableSamlCompress": false,+ "enableSamlC14n10": false,+ "enableSamlPostBinding": false,+ "useEmailAsSamlNameId": false,+ "enableWebAuthn": false,+ "enableLinkWithEmail": false,+ "orgChoiceMode": "",+ "samlReplyUrl": "",+ "providers": [{- "name": "Organization",- "visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "owner": "",+ "name": "provider_captcha_default",+ "canSignUp": false,+ "canSignIn": false,+ "canUnlink": false,+ "countryCodes": null,+ "prompted": false,+ "signupGroup": "",+ "rule": "",+ "provider": null+ }+ ],+ "signinMethods": [+ {+ "name": "Password",+ "displayName": "Password",+ "rule": "All"},{- "name": "ID",- "visible": true,- "viewRule": "Public",- "modifyRule": "Immutable",- "regex": ""+ "name": "Verification code",+ "displayName": "Verification code",+ "rule": "All"},{- "name": "Name",- "visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "name": "WebAuthn",+ "displayName": "WebAuthn",+ "rule": "None"},{- "name": "Display name",- "visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "name": "Face ID",+ "displayName": "Face ID",+ "rule": "None"+ }+ ],+ "signupItems": [+ {+ "name": "ID",+ "visible": false,+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "Random"},{- "name": "Avatar",+ "name": "Username","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "User type",+ "name": "Display name","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{"name": "Password","visible": true,- "viewRule": "Self",- "modifyRule": "Self",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Email",+ "name": "Confirm password","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Phone",+ "name": "Email","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "Normal"},{- "name": "Country code",+ "name": "Phone","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Country/Region",+ "name": "Agreement","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Location",+ "name": "Signup button","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Address",+ "name": "Providers","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""- },+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": ".provider-img {\n width: 30px;\n margin: 5px;\n }\n .provider-big-img {\n margin-bottom: 10px;\n }\n ",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "small"+ }+ ],+ "signinItems": [{- "name": "Affiliation",+ "name": "Back button","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "label": "",+ "customCss": ".back-button {\n top: 65px;\n left: 15px;\n position: absolute;\n}\n.back-inner-button{}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "Title",+ "name": "Languages","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "label": "",+ "customCss": ".login-languages {\n top: 55px;\n right: 5px;\n position: absolute;\n}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "ID card type",+ "name": "Logo","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "label": "",+ "customCss": ".login-logo-box {}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "ID card",+ "name": "Signin methods","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "label": "",+ "customCss": ".signin-methods {}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "ID card info",+ "name": "Username","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "label": "",+ "customCss": ".login-username {}\n.login-username-input{}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "Homepage",+ "name": "Password","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "label": "",+ "customCss": ".login-password {}\n.login-password-input{}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "Bio",+ "name": "Agreement","visible": true,- "viewRule": "Public",- "modifyRule": "Self",- "regex": ""+ "label": "",+ "customCss": ".login-agreement {}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "Tag",+ "name": "Forgot password?","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "label": "",+ "customCss": ".login-forget-password {\n display: inline-flex;\n justify-content: space-between;\n width: 320px;\n margin-bottom: 25px;\n}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "Language",+ "name": "Login button","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "label": "",+ "customCss": ".login-button-box {\n margin-bottom: 5px;\n}\n.login-button {\n width: 100%;\n}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "Gender",+ "name": "Signup link","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "label": "",+ "customCss": ".login-signup-link {\n margin-bottom: 24px;\n display: flex;\n justify-content: end;\n}",+ "placeholder": "",+ "rule": "None",+ "isCustom": false},{- "name": "Birthday",+ "name": "Providers","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""- },+ "label": "",+ "customCss": ".provider-img {\n width: 30px;\n margin: 5px;\n}\n.provider-big-img {\n margin-bottom: 10px;\n}",+ "placeholder": "",+ "rule": "small",+ "isCustom": false+ }+ ],+ "grantTypes": [+ "authorization_code",+ "password",+ "client_credentials",+ "token",+ "id_token",+ "refresh_token"+ ],+ "organizationObj": null,+ "certPublicKey": "",+ "tags": [],+ "samlAttributes": null,+ "isShared": false,+ "ipRestriction": "",+ "clientId": "a387a4892ee19b1a2249",+ "clientSecret": "dbf205949d704de81b0b5b3603174e23fbecc354",+ "redirectUris": [+ "http://localhost:3210/api/auth/callback/casdoor",+ "https://localhost:3210/api/auth/callback/casdoor",+ "http://example.com/api/auth/callback/casdoor",+ "https://example.com/api/auth/callback/casdoor"+ ],+ "forcedRedirectOrigin": "",+ "tokenFormat": "JWT",+ "tokenSigningMethod": "",+ "tokenFields": [],+ "expireInHours": 168,+ "refreshExpireInHours": 168,+ "signupUrl": "",+ "signinUrl": "",+ "forgetUrl": "",+ "affiliationUrl": "",+ "ipWhitelist": "",+ "termsOfUse": "",+ "signupHtml": "",+ "signinHtml": "",+ "themeData": null,+ "footerHtml": "",+ "formCss": "\u003cstyle\u003e\n .login-panel {\n padding: 40px 70px 0 70px;\n border-radius: 10px;\n background-color: #ffffff;\n box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;\n }\n .panel-logo {\n width: 64px;\n }\n .login-logo-box {\n margin-top: 20px;\n }\n\n #parent-area\n \u003e main\n \u003e div\n \u003e div.login-content\n \u003e div.login-panel\n \u003e div.login-form\n \u003e div\n \u003e div\n \u003e button {\n box-shadow: none !important;\n border-radius: 10px !important;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n border: 1px solid #eee !important;\n }\n\n @media (max-width: 640px) {\n .login-panel {\n padding: 40px 0 0 0;\n box-shadow: none;\n }\n }\n\u003c/style\u003e",+ "formCssMobile": "\u003cstyle\u003e\n .login-panel {\n padding: 40px 70px 0 70px;\n border-radius: 10px;\n background-color: #ffffff;\n box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;\n }\n .panel-logo {\n width: 64px;\n }\n .login-logo-box {\n margin-top: 20px;\n }\n\n #parent-area\n \u003e main\n \u003e div\n \u003e div.login-content\n \u003e div.login-panel\n \u003e div.login-form\n \u003e div\n \u003e div\n \u003e button {\n box-shadow: none !important;\n border-radius: 10px !important;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n border: 1px solid #eee !important;\n }\n\n @media (max-width: 640px) {\n .login-panel {\n padding: 40px 0 0 0;\n box-shadow: none;\n }\n }\n\u003c/style\u003e",+ "formOffset": 2,+ "formSideHtml": "",+ "formBackgroundUrl": "",+ "formBackgroundUrlMobile": "",+ "failedSigninLimit": 5,+ "failedSigninFrozenTime": 15+ },+ {+ "owner": "admin",+ "name": "app-built-in",+ "createdTime": "2025-08-11T08:43:23Z",+ "displayName": "Casdoor",+ "logo": "https://cdn.casbin.org/img/casdoor-logo_1185x256.png",+ "homepageUrl": "https://casdoor.org",+ "description": "",+ "organization": "built-in",+ "cert": "cert-built-in",+ "defaultGroup": "",+ "headerHtml": "",+ "enablePassword": true,+ "enableSignUp": true,+ "disableSignin": false,+ "enableSigninSession": false,+ "enableAutoSignin": false,+ "enableCodeSignin": false,+ "enableSamlCompress": false,+ "enableSamlC14n10": false,+ "enableSamlPostBinding": false,+ "useEmailAsSamlNameId": false,+ "enableWebAuthn": false,+ "enableLinkWithEmail": false,+ "orgChoiceMode": "",+ "samlReplyUrl": "",+ "providers": [{- "name": "Education",- "visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "owner": "",+ "name": "provider_captcha_default",+ "canSignUp": false,+ "canSignIn": false,+ "canUnlink": false,+ "countryCodes": null,+ "prompted": false,+ "signupGroup": "",+ "rule": "None",+ "provider": null+ }+ ],+ "signinMethods": [+ {+ "name": "Password",+ "displayName": "Password",+ "rule": "All"},{- "name": "Score",- "visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "name": "Verification code",+ "displayName": "Verification code",+ "rule": "All"},{- "name": "Karma",+ "name": "WebAuthn",+ "displayName": "WebAuthn",+ "rule": "None"+ },+ {+ "name": "Face ID",+ "displayName": "Face ID",+ "rule": "None"+ }+ ],+ "signupItems": [+ {+ "name": "ID",+ "visible": false,+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "Random"+ },+ {+ "name": "Username","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Ranking",+ "name": "Display name","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Signup application",+ "name": "Password","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "API key",- "visible": false,- "viewRule": "",- "modifyRule": "Self",- "regex": ""+ "name": "Confirm password",+ "visible": true,+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Groups",+ "name": "Email","visible": true,- "viewRule": "Public",- "modifyRule": "Admin",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "Normal"},{- "name": "Roles",+ "name": "Phone","visible": true,- "viewRule": "Public",- "modifyRule": "Immutable",- "regex": ""+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"},{- "name": "Permissions",+ "name": "Agreement",+ "visible": true,+ "required": true,+ "prompted": false,+ "type": "",+ "customCss": "",+ "label": "",+ "placeholder": "",+ "options": null,+ "regex": "",+ "rule": "None"+ }+ ],+ "signinItems": null,+ "grantTypes": null,+ "organizationObj": null,+ "certPublicKey": "",+ "tags": [],+ "samlAttributes": null,+ "isShared": false,+ "ipRestriction": "",+ "clientId": "45f13635c08f7bdb97e4",+ "clientSecret": "fc76d8be000bc358c83712f6598754e054969994",+ "redirectUris": [],+ "forcedRedirectOrigin": "",+ "tokenFormat": "JWT",+ "tokenSigningMethod": "",+ "tokenFields": [],+ "expireInHours": 168,+ "refreshExpireInHours": 0,+ "signupUrl": "",+ "signinUrl": "",+ "forgetUrl": "",+ "affiliationUrl": "",+ "ipWhitelist": "",+ "termsOfUse": "",+ "signupHtml": "",+ "signinHtml": "",+ "themeData": null,+ "footerHtml": "",+ "formCss": "",+ "formCssMobile": "",+ "formOffset": 2,+ "formSideHtml": "",+ "formBackgroundUrl": "",+ "formBackgroundUrlMobile": "",+ "failedSigninLimit": 0,+ "failedSigninFrozenTime": 0+ }+ ],+ "certs": [+ {+ "owner": "admin",+ "name": "cert-built-in",+ "createdTime": "2025-08-11T08:43:23Z",+ "displayName": "Built-in Cert",+ "scope": "JWT",+ "type": "x509",+ "cryptoAlgorithm": "RS256",+ "bitSize": 4096,+ "expireInYears": 20,+ "certificate": "-----BEGIN CERTIFICATE-----\nMIIE3TCCAsWgAwIBAgIDAeJAMA0GCSqGSIb3DQEBCwUAMCgxDjAMBgNVBAoTBWFk\nbWluMRYwFAYDVQQDEw1jZXJ0LWJ1aWx0LWluMB4XDTI1MDgxMTA4NDMyNVoXDTQ1\nMDgxMTA4NDMyNVowKDEOMAwGA1UEChMFYWRtaW4xFjAUBgNVBAMTDWNl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I\nM9IUdeBOL0XQqGW4w6eQpKiNpWse3Aj+FKHKBhHW3lTpj9phOpy5JY+C03m4tmyP\nuxmPQh79QUQSw8FWfrQjAt0U1Na9J5l83Eba87HowlVSXzYNhCXtikVcFifo0k4m\nR1RcA7Jgq5F6z7smVn3x5NOojVXG2BeRAoIBACUR3J+O9Cwp+2wDNouD/yWbOcPp\nqtcXvqRFgDppUEafbOZ9CP9NLhpM+/4rdMsA5aeh1Jn6mVbkz83Ikz4iU4PCHLrM\n8vhZz/jrYqLUKaKNuCOy+RDdjAyvXK0cq403NxFojea9xxzMQ4xENvuxRTZaAUt+\ng88oX9iI72l1uo31gLoB7o/zIRKVLyYvZa4oyCggPoPGTyhkSj+P8tCYTKQkIxdf\nX+HYxqMrxlY0c1dUJSo3XcW6l4OfHa6jSmyC0EsedQyttICvxfjGcjTlR/rFe/pK\nW0ifC3i5RCsqcwP7dciPGvaI8o5+w0+n7kykrYinTQ1uF2kU7Zu3VpEVVF0=\n-----END RSA PRIVATE KEY-----\n"+ }+ ],+ "enforcers": [+ {+ "owner": "built-in",+ "name": "api-enforcer-built-in",+ "createdTime": "2025-08-11T08:43:25Z",+ "updatedTime": "2025-08-11 08:43:25",+ "displayName": "API Enforcer",+ "description": "",+ "model": "built-in/api-model-built-in",+ "adapter": "built-in/api-adapter-built-in",+ "modelCfg": null+ },+ {+ "owner": "built-in",+ "name": "user-enforcer-built-in",+ "createdTime": "2025-08-11T08:43:25Z",+ "updatedTime": "2025-08-11 08:43:25",+ "displayName": "User Enforcer",+ "description": "",+ "model": "built-in/user-model-built-in",+ "adapter": "built-in/user-adapter-built-in",+ "modelCfg": null+ }+ ],+ "groups": [],+ "invitations": [],+ "ldaps": [+ {+ "id": "ldap-built-in",+ "owner": "built-in",+ "createdTime": "2025-08-11T08:43:25Z",+ "serverName": "BuildIn LDAP Server",+ "host": "example.com",+ "port": 389,+ "enableSsl": false,+ "allowSelfSignedCert": false,+ "username": "cn=buildin,dc=example,dc=com",+ "password": "123",+ "baseDn": "ou=BuildIn,dc=example,dc=com",+ "filter": "",+ "filterFields": null,+ "defaultGroup": "",+ "passwordType": "",+ "autoSync": 0,+ "lastSync": ""+ }+ ],+ "models": [+ {+ "owner": "built-in",+ "name": "api-model-built-in",+ "createdTime": "2025-08-11T08:43:25Z",+ "displayName": "API Model",+ "description": "",+ "modelText": "[request_definition]\nr = subOwner, subName, method, urlPath, objOwner, objName\n\n[policy_definition]\np = subOwner, subName, method, urlPath, objOwner, objName\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = (r.subOwner == p.subOwner || p.subOwner == \"*\") \u0026\u0026 \\\n (r.subName == p.subName || p.subName == \"*\" || r.subName != \"anonymous\" \u0026\u0026 p.subName == \"!anonymous\") \u0026\u0026 \\\n (r.method == p.method || p.method == \"*\") \u0026\u0026 \\\n (r.urlPath == p.urlPath || p.urlPath == \"*\") \u0026\u0026 \\\n (r.objOwner == p.objOwner || p.objOwner == \"*\") \u0026\u0026 \\\n (r.objName == p.objName || p.objName == \"*\") || \\\n (r.subOwner == r.objOwner \u0026\u0026 r.subName == r.objName)"+ },+ {+ "owner": "built-in",+ "name": "user-model-built-in",+ "createdTime": "2025-08-11T08:43:25Z",+ "displayName": "Built-in Model",+ "description": "",+ "modelText": "[request_definition]\nr = sub, obj, act\n\n[policy_definition]\np = sub, obj, act\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = g(r.sub, p.sub) \u0026\u0026 r.obj == p.obj \u0026\u0026 r.act == p.act"+ }+ ],+ "organizations": [+ {+ "owner": "admin",+ "name": "lobechat",+ "createdTime": "2025-08-11T16:57:04+08:00",+ "displayName": "LobeChat",+ "websiteUrl": "https://lobehub.com",+ "logo": "https://lobehub.com/icon-192x192.png",+ "logoDark": "",+ "favicon": "https://lobehub.com/favicon.ico",+ "hasPrivilegeConsent": false,+ "passwordType": "plain",+ "passwordSalt": "",+ "passwordOptions": ["AtLeast6"],+ "passwordObfuscatorType": "Plain",+ "passwordObfuscatorKey": "",+ "passwordExpireDays": 0,+ "countryCodes": ["US"],+ "defaultAvatar": "https://lobehub.com/favicon.ico",+ "defaultApplication": "",+ "userTypes": null,+ "tags": [],+ "languages": [+ "en",+ "es",+ "fr",+ "de",+ "zh",+ "id",+ "ja",+ "ko",+ "ru",+ "vi",+ "pt",+ "it",+ "ms",+ "tr",+ "ar",+ "he",+ "nl",+ "pl",+ "fi",+ "sv",+ "uk",+ "kk",+ "fa",+ "cs",+ "sk"+ ],+ "themeData": null,+ "masterPassword": "",+ "defaultPassword": "",+ "masterVerificationCode": "",+ "ipWhitelist": "",+ "initScore": 0,+ "enableSoftDeletion": false,+ "isProfilePublic": true,+ "useEmailAsUsername": false,+ "enableTour": true,+ "disableSignin": false,+ "ipRestriction": "",+ "navItems": null,+ "widgetItems": null,+ "mfaItems": null,+ "mfaRememberInHours": 12,+ "accountItems": [+ {+ "name": "Organization","visible": true,"viewRule": "Public",- "modifyRule": "Immutable",+ "modifyRule": "Admin","regex": ""},{- "name": "3rd-party logins",+ "name": "ID","visible": true,- "viewRule": "Self",- "modifyRule": "Self",+ "viewRule": "Public",+ "modifyRule": "Immutable","regex": ""},{- "name": "Properties",- "visible": false,- "viewRule": "Admin",+ "name": "Name",+ "visible": true,+ "viewRule": "Public","modifyRule": "Admin","regex": ""},{- "name": "Is online",+ "name": "Display name","visible": true,- "viewRule": "Admin",- "modifyRule": "Admin",+ "viewRule": "Public",+ "modifyRule": "Self","regex": ""},{- "name": "Is admin",+ "name": "Avatar","visible": true,- "viewRule": "Admin",- "modifyRule": "Admin",+ "viewRule": "Public",+ "modifyRule": "Self","regex": ""},{- "name": "Is forbidden",+ "name": "User type","visible": true,- "viewRule": "Admin",+ "viewRule": "Public","modifyRule": "Admin","regex": ""},{- "name": "Is deleted",+ "name": "Password","visible": true,- "viewRule": "Admin",- "modifyRule": "Admin",+ "viewRule": "Self",+ "modifyRule": "Self","regex": ""},{- "name": "Multi-factor authentication",+ "name": "Email","visible": true,- "viewRule": "Self",+ "viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "WebAuthn credentials",+ "name": "Phone","visible": true,- "viewRule": "Self",+ "viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "Managed accounts",+ "name": "Country code","visible": true,- "viewRule": "Self",+ "viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "MFA accounts",+ "name": "Country/Region","visible": true,- "viewRule": "Self",+ "viewRule": "Public","modifyRule": "Self","regex": ""- }- ]- },- {- "owner": "admin",- "name": "built-in",- "createdTime": "2025-08-11T08:43:22Z",- "displayName": "Built-in Organization",- "websiteUrl": "https://example.com",- "logo": "",- "logoDark": "",- "favicon": "https://cdn.casbin.org/img/casbin/favicon.ico",- "hasPrivilegeConsent": false,- "passwordType": "plain",- "passwordSalt": "",- "passwordOptions": [- "AtLeast6"- ],- "passwordObfuscatorType": "",- "passwordObfuscatorKey": "",- "passwordExpireDays": 0,- "countryCodes": [- "US",- "ES",- "FR",- "DE",- "GB",- "CN",- "JP",- "KR",- "VN",- "ID",- "SG",- "IN"- ],- "defaultAvatar": "https://cdn.casbin.org/img/casbin.svg",- "defaultApplication": "",- "userTypes": [],- "tags": [],- "languages": [- "en",- "zh",- "es",- "fr",- "de",- "id",- "ja",- "ko",- "ru",- "vi",- "pt"- ],- "themeData": null,- "masterPassword": "",- "defaultPassword": "",- "masterVerificationCode": "",- "ipWhitelist": "",- "initScore": 2000,- "enableSoftDeletion": false,- "isProfilePublic": false,- "useEmailAsUsername": false,- "enableTour": true,- "disableSignin": false,- "ipRestriction": "",- "navItems": null,- "widgetItems": null,- "mfaItems": null,- "mfaRememberInHours": 0,- "accountItems": [+ },{- "name": "Organization",+ "name": "Location","visible": true,"viewRule": "Public",- "modifyRule": "Admin",+ "modifyRule": "Self","regex": ""},{- "name": "ID",+ "name": "Address","visible": true,"viewRule": "Public",- "modifyRule": "Immutable",+ "modifyRule": "Self","regex": ""},{- "name": "Name",+ "name": "Affiliation","visible": true,"viewRule": "Public",- "modifyRule": "Admin",+ "modifyRule": "Self","regex": ""},{- "name": "Display name",+ "name": "Title","visible": true,"viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "Avatar",+ "name": "ID card type","visible": true,"viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "User type",+ "name": "ID card","visible": true,"viewRule": "Public",- "modifyRule": "Admin",+ "modifyRule": "Self","regex": ""},{- "name": "Password",+ "name": "ID card info","visible": true,- "viewRule": "Self",+ "viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "Email",+ "name": "Homepage","visible": true,"viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "Phone",+ "name": "Bio","visible": true,"viewRule": "Public","modifyRule": "Self","regex": ""},{- "name": "Country code",+ "name": "Tag","visible": true,"viewRule": "Public","modifyRule": "Admin","regex": ""},{- "name": "Country/Region",+ "name": "Language","visible": true,"viewRule": "Public",- "modifyRule": "Self",+ "modifyRule": "Admin","regex": ""},{- "name": "Location",+ "name": "Gender","visible": true,"viewRule": "Public",- "modifyRule": "Self",+ "modifyRule": "Admin","regex": ""},{- "name": "Affiliation",+ "name": "Birthday","visible": true,"viewRule": "Public",- "modifyRule": "Self",+ "modifyRule": "Admin","regex": ""},{- "name": "Title",+ "name": "Education","visible": true,"viewRule": "Public",- "modifyRule": "Self",+ "modifyRule": "Admin","regex": ""},{- "name": "Homepage",+ "name": "Score","visible": true,"viewRule": "Public",- "modifyRule": "Self",+ "modifyRule": "Admin","regex": ""},{- "name": "Bio",+ "name": "Karma","visible": true,"viewRule": "Public",- "modifyRule": "Self",+ "modifyRule": "Admin","regex": ""},{- "name": "Tag",+ "name": "Ranking","visible": true,"viewRule": "Public","modifyRule": "Admin",@@ -565,24 +927,31 @@"regex": ""},{- "name": "Roles",+ "name": "API key",+ "visible": false,+ "viewRule": "",+ "modifyRule": "Self",+ "regex": ""+ },+ {+ "name": "Groups","visible": true,"viewRule": "Public",- "modifyRule": "Immutable",+ "modifyRule": "Admin","regex": ""},{- "name": "Permissions",+ "name": "Roles","visible": true,"viewRule": "Public","modifyRule": "Immutable","regex": ""},{- "name": "Groups",+ "name": "Permissions","visible": true,"viewRule": "Public",- "modifyRule": "Admin",+ "modifyRule": "Immutable","regex": ""},{@@ -594,6 +963,13 @@},{"name": "Properties",+ "visible": false,+ "viewRule": "Admin",+ "modifyRule": "Admin",+ "regex": ""+ },+ {+ "name": "Is online","visible": true,"viewRule": "Admin","modifyRule": "Admin",@@ -642,563 +1018,347 @@"regex": ""},{- "name": "MFA accounts",- "visible": true,- "viewRule": "Self",- "modifyRule": "Self",- "regex": ""- }- ]- }- ],- "applications": [- {- "owner": "admin",- "name": "lobechat",- "createdTime": "2025-08-11T17:06:30+08:00",- "displayName": "LobeChat",- "logo": "https://lobehub.com/icon-192x192.png",- "homepageUrl": "https://lobehub.com",- "description": "",- "organization": "lobechat",- "cert": "cert-built-in",- "defaultGroup": "",- "headerHtml": "",- "enablePassword": true,- "enableSignUp": false,- "disableSignin": false,- "enableSigninSession": false,- "enableAutoSignin": false,- "enableCodeSignin": false,- "enableSamlCompress": false,- "enableSamlC14n10": false,- "enableSamlPostBinding": false,- "useEmailAsSamlNameId": false,- "enableWebAuthn": false,- "enableLinkWithEmail": false,- "orgChoiceMode": "",- "samlReplyUrl": "",- "providers": [- {- "owner": "",- "name": "provider_captcha_default",- "canSignUp": false,- "canSignIn": false,- "canUnlink": false,- "countryCodes": null,- "prompted": false,- "signupGroup": "",- "rule": "",- "provider": null- }- ],- "signinMethods": [- {- "name": "Password",- "displayName": "Password",- "rule": "All"- },- {- "name": "Verification code",- "displayName": "Verification code",- "rule": "All"- },- {- "name": "WebAuthn",- "displayName": "WebAuthn",- "rule": "None"- },- {- "name": "Face ID",- "displayName": "Face ID",- "rule": "None"- }- ],- "signupItems": [- {- "name": "ID",- "visible": false,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "Random"- },- {- "name": "Username",- "visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"- },- {- "name": "Display name",- "visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"- },- {- "name": "Password",- "visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"- },- {- "name": "Confirm password",- "visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"- },- {- "name": "Email",- "visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "Normal"- },- {- "name": "Phone",- "visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"- },- {- "name": "Agreement",- "visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"- },- {- "name": "Signup button",+ "name": "MFA accounts","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"- },+ "viewRule": "Self",+ "modifyRule": "Self",+ "regex": ""+ }+ ]+ },+ {+ "owner": "admin",+ "name": "built-in",+ "createdTime": "2025-08-11T08:43:22Z",+ "displayName": "Built-in Organization",+ "websiteUrl": "https://example.com",+ "logo": "",+ "logoDark": "",+ "favicon": "https://cdn.casbin.org/img/casbin/favicon.ico",+ "hasPrivilegeConsent": false,+ "passwordType": "plain",+ "passwordSalt": "",+ "passwordOptions": ["AtLeast6"],+ "passwordObfuscatorType": "",+ "passwordObfuscatorKey": "",+ "passwordExpireDays": 0,+ "countryCodes": ["US", "ES", "FR", "DE", "GB", "CN", "JP", "KR", "VN", "ID", "SG", "IN"],+ "defaultAvatar": "https://cdn.casbin.org/img/casbin.svg",+ "defaultApplication": "",+ "userTypes": [],+ "tags": [],+ "languages": ["en", "zh", "es", "fr", "de", "id", "ja", "ko", "ru", "vi", "pt"],+ "themeData": null,+ "masterPassword": "",+ "defaultPassword": "",+ "masterVerificationCode": "",+ "ipWhitelist": "",+ "initScore": 2000,+ "enableSoftDeletion": false,+ "isProfilePublic": false,+ "useEmailAsUsername": false,+ "enableTour": true,+ "disableSignin": false,+ "ipRestriction": "",+ "navItems": null,+ "widgetItems": null,+ "mfaItems": null,+ "mfaRememberInHours": 0,+ "accountItems": [{- "name": "Providers",+ "name": "Organization","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": ".provider-img {\n width: 30px;\n margin: 5px;\n }\n .provider-big-img {\n margin-bottom: 10px;\n }\n ",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "small"- }- ],- "signinItems": [+ "viewRule": "Public",+ "modifyRule": "Admin",+ "regex": ""+ },{- "name": "Back button",+ "name": "ID","visible": true,- "label": "",- "customCss": ".back-button {\n top: 65px;\n left: 15px;\n position: absolute;\n}\n.back-inner-button{}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Immutable",+ "regex": ""},{- "name": "Languages",+ "name": "Name","visible": true,- "label": "",- "customCss": ".login-languages {\n top: 55px;\n right: 5px;\n position: absolute;\n}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Admin",+ "regex": ""},{- "name": "Logo",+ "name": "Display name","visible": true,- "label": "",- "customCss": ".login-logo-box {}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Signin methods",+ "name": "Avatar","visible": true,- "label": "",- "customCss": ".signin-methods {}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Username",+ "name": "User type","visible": true,- "label": "",- "customCss": ".login-username {}\n.login-username-input{}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Admin",+ "regex": ""},{"name": "Password","visible": true,- "label": "",- "customCss": ".login-password {}\n.login-password-input{}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Self",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Agreement",+ "name": "Email","visible": true,- "label": "",- "customCss": ".login-agreement {}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Forgot password?",+ "name": "Phone","visible": true,- "label": "",- "customCss": ".login-forget-password {\n display: inline-flex;\n justify-content: space-between;\n width: 320px;\n margin-bottom: 25px;\n}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Login button",+ "name": "Country code","visible": true,- "label": "",- "customCss": ".login-button-box {\n margin-bottom: 5px;\n}\n.login-button {\n width: 100%;\n}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Admin",+ "regex": ""},{- "name": "Signup link",+ "name": "Country/Region","visible": true,- "label": "",- "customCss": ".login-signup-link {\n margin-bottom: 24px;\n display: flex;\n justify-content: end;\n}",- "placeholder": "",- "rule": "None",- "isCustom": false+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Providers",+ "name": "Location","visible": true,- "label": "",- "customCss": ".provider-img {\n width: 30px;\n margin: 5px;\n}\n.provider-big-img {\n margin-bottom: 10px;\n}",- "placeholder": "",- "rule": "small",- "isCustom": false- }- ],- "grantTypes": [- "authorization_code",- "password",- "client_credentials",- "token",- "id_token",- "refresh_token"- ],- "organizationObj": null,- "certPublicKey": "",- "tags": [],- "samlAttributes": null,- "isShared": false,- "ipRestriction": "",- "clientId": "a387a4892ee19b1a2249",- "clientSecret": "dbf205949d704de81b0b5b3603174e23fbecc354",- "redirectUris": [- "http://localhost:3210/api/auth/callback/casdoor",- "https://localhost:3210/api/auth/callback/casdoor",- "http://example.com/api/auth/callback/casdoor",- "https://example.com/api/auth/callback/casdoor"- ],- "forcedRedirectOrigin": "",- "tokenFormat": "JWT",- "tokenSigningMethod": "",- "tokenFields": [],- "expireInHours": 168,- "refreshExpireInHours": 168,- "signupUrl": "",- "signinUrl": "",- "forgetUrl": "",- "affiliationUrl": "",- "ipWhitelist": "",- "termsOfUse": "",- "signupHtml": "",- "signinHtml": "",- "themeData": null,- "footerHtml": "",- "formCss": "\u003cstyle\u003e\n .login-panel {\n padding: 40px 70px 0 70px;\n border-radius: 10px;\n background-color: #ffffff;\n box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;\n }\n .panel-logo {\n width: 64px;\n }\n .login-logo-box {\n margin-top: 20px;\n }\n\n #parent-area\n \u003e main\n \u003e div\n \u003e div.login-content\n \u003e div.login-panel\n \u003e div.login-form\n \u003e div\n \u003e div\n \u003e button {\n box-shadow: none !important;\n border-radius: 10px !important;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n border: 1px solid #eee !important;\n }\n\n @media (max-width: 640px) {\n .login-panel {\n padding: 40px 0 0 0;\n box-shadow: none;\n }\n }\n\u003c/style\u003e",- "formCssMobile": "\u003cstyle\u003e\n .login-panel {\n padding: 40px 70px 0 70px;\n border-radius: 10px;\n background-color: #ffffff;\n box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;\n }\n .panel-logo {\n width: 64px;\n }\n .login-logo-box {\n margin-top: 20px;\n }\n\n #parent-area\n \u003e main\n \u003e div\n \u003e div.login-content\n \u003e div.login-panel\n \u003e div.login-form\n \u003e div\n \u003e div\n \u003e button {\n box-shadow: none !important;\n border-radius: 10px !important;\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n border: 1px solid #eee !important;\n }\n\n @media (max-width: 640px) {\n .login-panel {\n padding: 40px 0 0 0;\n box-shadow: none;\n }\n }\n\u003c/style\u003e",- "formOffset": 2,- "formSideHtml": "",- "formBackgroundUrl": "",- "formBackgroundUrlMobile": "",- "failedSigninLimit": 5,- "failedSigninFrozenTime": 15- },- {- "owner": "admin",- "name": "app-built-in",- "createdTime": "2025-08-11T08:43:23Z",- "displayName": "Casdoor",- "logo": "https://cdn.casbin.org/img/casdoor-logo_1185x256.png",- "homepageUrl": "https://casdoor.org",- "description": "",- "organization": "built-in",- "cert": "cert-built-in",- "defaultGroup": "",- "headerHtml": "",- "enablePassword": true,- "enableSignUp": true,- "disableSignin": false,- "enableSigninSession": false,- "enableAutoSignin": false,- "enableCodeSignin": false,- "enableSamlCompress": false,- "enableSamlC14n10": false,- "enableSamlPostBinding": false,- "useEmailAsSamlNameId": false,- "enableWebAuthn": false,- "enableLinkWithEmail": false,- "orgChoiceMode": "",- "samlReplyUrl": "",- "providers": [+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""+ },{- "owner": "",- "name": "provider_captcha_default",- "canSignUp": false,- "canSignIn": false,- "canUnlink": false,- "countryCodes": null,- "prompted": false,- "signupGroup": "",- "rule": "None",- "provider": null- }- ],- "signinMethods": [+ "name": "Affiliation",+ "visible": true,+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""+ },{- "name": "Password",- "displayName": "Password",- "rule": "All"+ "name": "Title",+ "visible": true,+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Verification code",- "displayName": "Verification code",- "rule": "All"+ "name": "Homepage",+ "visible": true,+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "WebAuthn",- "displayName": "WebAuthn",- "rule": "None"+ "name": "Bio",+ "visible": true,+ "viewRule": "Public",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Face ID",- "displayName": "Face ID",- "rule": "None"- }- ],- "signupItems": [+ "name": "Tag",+ "visible": true,+ "viewRule": "Public",+ "modifyRule": "Admin",+ "regex": ""+ },{- "name": "ID",- "visible": false,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "Random"+ "name": "Signup application",+ "visible": true,+ "viewRule": "Public",+ "modifyRule": "Admin",+ "regex": ""},{- "name": "Username",+ "name": "Roles","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"+ "viewRule": "Public",+ "modifyRule": "Immutable",+ "regex": ""},{- "name": "Display name",+ "name": "Permissions","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"+ "viewRule": "Public",+ "modifyRule": "Immutable",+ "regex": ""},{- "name": "Password",+ "name": "Groups","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"+ "viewRule": "Public",+ "modifyRule": "Admin",+ "regex": ""},{- "name": "Confirm password",+ "name": "3rd-party logins","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"+ "viewRule": "Self",+ "modifyRule": "Self",+ "regex": ""},{- "name": "Email",+ "name": "Properties","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "Normal"+ "viewRule": "Admin",+ "modifyRule": "Admin",+ "regex": ""},{- "name": "Phone",+ "name": "Is admin","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"+ "viewRule": "Admin",+ "modifyRule": "Admin",+ "regex": ""},{- "name": "Agreement",+ "name": "Is forbidden","visible": true,- "required": true,- "prompted": false,- "type": "",- "customCss": "",- "label": "",- "placeholder": "",- "options": null,- "regex": "",- "rule": "None"+ "viewRule": "Admin",+ "modifyRule": "Admin",+ "regex": ""+ },+ {+ "name": "Is deleted",+ "visible": true,+ "viewRule": "Admin",+ "modifyRule": "Admin",+ "regex": ""+ },+ {+ "name": "Multi-factor authentication",+ "visible": true,+ "viewRule": "Self",+ "modifyRule": "Self",+ "regex": ""+ },+ {+ "name": "WebAuthn credentials",+ "visible": true,+ "viewRule": "Self",+ "modifyRule": "Self",+ "regex": ""+ },+ {+ "name": "Managed accounts",+ "visible": true,+ "viewRule": "Self",+ "modifyRule": "Self",+ "regex": ""+ },+ {+ "name": "MFA accounts",+ "visible": true,+ "viewRule": "Self",+ "modifyRule": "Self",+ "regex": ""}- ],- "signinItems": null,- "grantTypes": null,- "organizationObj": null,- "certPublicKey": "",- "tags": [],- "samlAttributes": null,- "isShared": false,- "ipRestriction": "",- "clientId": "45f13635c08f7bdb97e4",- "clientSecret": "fc76d8be000bc358c83712f6598754e054969994",- "redirectUris": [],- "forcedRedirectOrigin": "",- "tokenFormat": "JWT",- "tokenSigningMethod": "",- "tokenFields": [],- "expireInHours": 168,- "refreshExpireInHours": 0,- "signupUrl": "",- "signinUrl": "",- "forgetUrl": "",- "affiliationUrl": "",- "ipWhitelist": "",- "termsOfUse": "",- "signupHtml": "",- "signinHtml": "",- "themeData": null,- "footerHtml": "",- "formCss": "",- "formCssMobile": "",- "formOffset": 2,- "formSideHtml": "",- "formBackgroundUrl": "",- "formBackgroundUrlMobile": "",- "failedSigninLimit": 0,- "failedSigninFrozenTime": 0+ ]+ }+ ],+ "payments": [],+ "permissions": [+ {+ "owner": "built-in",+ "name": "permission-built-in",+ "createdTime": "2025-08-11T08:43:22Z",+ "displayName": "Built-in Permission",+ "description": "Built-in Permission",+ "users": ["built-in/*"],+ "groups": [],+ "roles": [],+ "domains": [],+ "model": "user-model-built-in",+ "adapter": "",+ "resourceType": "Application",+ "resources": ["app-built-in"],+ "actions": ["Read", "Write", "Admin"],+ "effect": "Allow",+ "isEnabled": true,+ "submitter": "admin",+ "approver": "admin",+ "approveTime": "2025-08-11T08:43:22Z",+ "state": "Approved"+ }+ ],+ "plans": [],+ "pricings": [],+ "products": [],+ "providers": [+ {+ "owner": "admin",+ "name": "provider_captcha_default",+ "createdTime": "2025-08-11T08:43:23Z",+ "displayName": "Captcha Default",+ "category": "Captcha",+ "type": "Default",+ "subType": "",+ "method": "",+ "clientId": "",+ "clientSecret": "",+ "clientId2": "",+ "clientSecret2": "",+ "cert": "",+ "customAuthUrl": "",+ "customTokenUrl": "",+ "customUserInfoUrl": "",+ "customLogo": "",+ "scopes": "",+ "userMapping": null,+ "httpHeaders": null,+ "host": "",+ "port": 0,+ "disableSsl": false,+ "title": "",+ "content": "",+ "receiver": "",+ "regionId": "",+ "signName": "",+ "templateCode": "",+ "appId": "",+ "endpoint": "",+ "intranetEndpoint": "",+ "domain": "",+ "bucket": "",+ "pathPrefix": "",+ "metadata": "",+ "idP": "",+ "issuerUrl": "",+ "enableSignAuthnRequest": false,+ "emailRegex": "",+ "providerUrl": ""}],+ "records": [],+ "resources": [],+ "roles": [],+ "sessions": [],+ "subscriptions": [],+ "syncers": [],+ "tokens": [],+ "transactions": [],"users": [{"owner": "lobechat",@@ -1515,143 +1675,6 @@"ipWhitelist": ""}],- "certs": [- {- "owner": "admin",- "name": "cert-built-in",- "createdTime": "2025-08-11T08:43:23Z",- "displayName": "Built-in Cert",- "scope": "JWT",- "type": "x509",- "cryptoAlgorithm": "RS256",- "bitSize": 4096,- "expireInYears": 20,- "certificate": "-----BEGIN CERTIFICATE-----\nMIIE3TCCAsWgAwIBAgIDAeJAMA0GCSqGSIb3DQEBCwUAMCgxDjAMBgNVBAoTBWFk\nbWluMRYwFAYDVQQDEw1jZXJ0LWJ1aWx0LWluMB4XDTI1MDgxMTA4NDMyNVoXDTQ1\nMDgxMTA4NDMyNVowKDEOMAwGA1UEChMFYWRtaW4xFjAUBgNVBAMTDWNlcnQtYnVp\nbHQtaW4wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDqvw3MYJxa1sKq\ndyU+GGDkIqGzc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t0U1Na9J5l83Eba87HowlVSXzYNhCXtikVcFifo0k4m\nR1RcA7Jgq5F6z7smVn3x5NOojVXG2BeRAoIBACUR3J+O9Cwp+2wDNouD/yWbOcPp\nqtcXvqRFgDppUEafbOZ9CP9NLhpM+/4rdMsA5aeh1Jn6mVbkz83Ikz4iU4PCHLrM\n8vhZz/jrYqLUKaKNuCOy+RDdjAyvXK0cq403NxFojea9xxzMQ4xENvuxRTZaAUt+\ng88oX9iI72l1uo31gLoB7o/zIRKVLyYvZa4oyCggPoPGTyhkSj+P8tCYTKQkIxdf\nX+HYxqMrxlY0c1dUJSo3XcW6l4OfHa6jSmyC0EsedQyttICvxfjGcjTlR/rFe/pK\nW0ifC3i5RCsqcwP7dciPGvaI8o5+w0+n7kykrYinTQ1uF2kU7Zu3VpEVVF0=\n-----END RSA PRIVATE KEY-----\n"- }- ],- "providers": [- {- "owner": "admin",- "name": "provider_captcha_default",- "createdTime": "2025-08-11T08:43:23Z",- "displayName": "Captcha Default",- "category": "Captcha",- "type": "Default",- "subType": "",- "method": "",- "clientId": "",- "clientSecret": "",- "clientId2": "",- "clientSecret2": "",- "cert": "",- "customAuthUrl": "",- "customTokenUrl": "",- "customUserInfoUrl": "",- "customLogo": "",- "scopes": "",- "userMapping": null,- "httpHeaders": null,- "host": "",- "port": 0,- "disableSsl": false,- "title": "",- "content": "",- "receiver": "",- "regionId": "",- "signName": "",- "templateCode": "",- "appId": "",- "endpoint": "",- "intranetEndpoint": "",- "domain": "",- "bucket": "",- "pathPrefix": "",- "metadata": "",- "idP": "",- "issuerUrl": "",- "enableSignAuthnRequest": false,- "emailRegex": "",- "providerUrl": ""- }- ],- "ldaps": [- {- "id": "ldap-built-in",- "owner": "built-in",- "createdTime": "2025-08-11T08:43:25Z",- "serverName": "BuildIn LDAP Server",- "host": "example.com",- "port": 389,- "enableSsl": false,- "allowSelfSignedCert": false,- "username": "cn=buildin,dc=example,dc=com",- "password": "123",- "baseDn": "ou=BuildIn,dc=example,dc=com",- "filter": "",- "filterFields": null,- "defaultGroup": "",- "passwordType": "",- "autoSync": 0,- "lastSync": ""- }- ],- "models": [- {- "owner": "built-in",- "name": "api-model-built-in",- "createdTime": "2025-08-11T08:43:25Z",- "displayName": "API Model",- "description": "",- "modelText": "[request_definition]\nr = subOwner, subName, method, urlPath, objOwner, objName\n\n[policy_definition]\np = subOwner, subName, method, urlPath, objOwner, objName\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = (r.subOwner == p.subOwner || p.subOwner == \"*\") \u0026\u0026 \\\n (r.subName == p.subName || p.subName == \"*\" || r.subName != \"anonymous\" \u0026\u0026 p.subName == \"!anonymous\") \u0026\u0026 \\\n (r.method == p.method || p.method == \"*\") \u0026\u0026 \\\n (r.urlPath == p.urlPath || p.urlPath == \"*\") \u0026\u0026 \\\n (r.objOwner == p.objOwner || p.objOwner == \"*\") \u0026\u0026 \\\n (r.objName == p.objName || p.objName == \"*\") || \\\n (r.subOwner == r.objOwner \u0026\u0026 r.subName == r.objName)"- },- {- "owner": "built-in",- "name": "user-model-built-in",- "createdTime": "2025-08-11T08:43:25Z",- "displayName": "Built-in Model",- "description": "",- "modelText": "[request_definition]\nr = sub, obj, act\n\n[policy_definition]\np = sub, obj, act\n\n[role_definition]\ng = _, _\n\n[policy_effect]\ne = some(where (p.eft == allow))\n\n[matchers]\nm = g(r.sub, p.sub) \u0026\u0026 r.obj == p.obj \u0026\u0026 r.act == p.act"- }- ],- "permissions": [- {- "owner": "built-in",- "name": "permission-built-in",- "createdTime": "2025-08-11T08:43:22Z",- "displayName": "Built-in Permission",- "description": "Built-in Permission",- "users": [- "built-in/*"- ],- "groups": [],- "roles": [],- "domains": [],- "model": "user-model-built-in",- "adapter": "",- "resourceType": "Application",- "resources": [- "app-built-in"- ],- "actions": [- "Read",- "Write",- "Admin"- ],- "effect": "Allow",- "isEnabled": true,- "submitter": "admin",- "approver": "admin",- "approveTime": "2025-08-11T08:43:22Z",- "state": "Approved"- }- ],- "payments": [],- "products": [],- "resources": [],- "roles": [],- "syncers": [],- "tokens": [],"webhooks": [{"owner": "admin",@@ -1667,78 +1690,12 @@"value": "casdoor-secret"}],- "events": [- "update-user"- ],+ "events": ["update-user"],"tokenFields": null,- "objectFields": [- "All"- ],+ "objectFields": ["All"],"isUserExtended": false,"singleOrgOnly": false,"isEnabled": true}- ],- "groups": [],- "adapters": [- {- "owner": "built-in",- "name": "api-adapter-built-in",- "createdTime": "2025-08-11T08:43:25Z",- "table": "casbin_api_rule",- "useSameDb": true,- "type": "",- "databaseType": "",- "host": "",- "port": 0,- "user": "",- "password": "",- "database": ""- },- {- "owner": "built-in",- "name": "user-adapter-built-in",- "createdTime": "2025-08-11T08:43:25Z",- "table": "casbin_user_rule",- "useSameDb": true,- "type": "",- "databaseType": "",- "host": "",- "port": 0,- "user": "",- "password": "",- "database": ""- }- ],- "enforcers": [- {- "owner": "built-in",- "name": "api-enforcer-built-in",- "createdTime": "2025-08-11T08:43:25Z",- "updatedTime": "2025-08-11 08:43:25",- "displayName": "API Enforcer",- "description": "",- "model": "built-in/api-model-built-in",- "adapter": "built-in/api-adapter-built-in",- "modelCfg": null- },- {- "owner": "built-in",- "name": "user-enforcer-built-in",- "createdTime": "2025-08-11T08:43:25Z",- "updatedTime": "2025-08-11 08:43:25",- "displayName": "User Enforcer",- "description": "",- "model": "built-in/user-model-built-in",- "adapter": "built-in/user-adapter-built-in",- "modelCfg": null- }- ],- "plans": [],- "pricings": [],- "invitations": [],- "records": [],- "sessions": [],- "subscriptions": [],- "transactions": []-}\ No newline at end of file+ ]+}diff --git a/docs/development/basic/work-with-server-side-database.mdx b/docs/development/basic/work-with-server-side-database.mdxnew file mode 100644index 00000000000..9c0199c4853--- /dev/null+++ b/docs/development/basic/work-with-server-side-database.mdx@@ -0,0 +1,77 @@+# Work with Server-Side Database++LobeChat provides a battery-included experience with its client-side database.+While some features you really care about is only available at a server-side development.++In order to work with the aspect of server-side database,+you can setup all the prerequisites by following the [Deploying Server-Side Database](https://lobehub.com/docs/self-hosting/server-database) story.+But here is the easier approach that can reduce your pain.++## Quick Setup++### Environment Configuration++The project already includes a `.env.development` file with all necessary environment variables for server-side database mode. This file configures:++- **Service Mode**: `NEXT_PUBLIC_SERVICE_MODE=server`+- **Database**: PostgreSQL with connection string+- **Authentication**: NextAuth with Casdoor SSO+- **Storage**: MinIO S3-compatible storage+- **Search**: SearXNG search engine++### Start Docker Services++Start all required services using Docker Compose:++```bash+docker-compose -f docker-compose.development.yml up -d+```++This will start the following services:++- PostgreSQL database (port 5432)+- MinIO storage (port 9000)+- Casdoor authentication (port 8000)+- SearXNG search (port 8080)++### Run Database Migrations++Execute the database migration script to create all necessary tables:++```bash+pnpm db:migrate+```++You should see: `✅ database migration pass.`++### Start Development Server++Launch the LobeChat development server:++```bash+pnpm dev+```++The server will start on `http://localhost:3010`++And you can check all Docker services are running by running:++```bash+docker-compose -f docker-compose.development.yml ps+```++### Reset Services++If you encounter issues, you can reset the entire stack:++```bash+# Stop and remove all containers+docker-compose -f docker-compose.development.yml down++# Remove volumes (this will delete all data)+docker-compose -f docker-compose.development.yml down -v++# Start fresh+docker-compose -f docker-compose.development.yml up -d+pnpm db:migrate+```diff --git a/docs/development/basic/work-with-server-side-database.zh-CN.mdx b/docs/development/basic/work-with-server-side-database.zh-CN.mdxnew file mode 100644index 00000000000..4649c0f236f--- /dev/null+++ b/docs/development/basic/work-with-server-side-database.zh-CN.mdx@@ -0,0 +1,77 @@+# 使用服务端数据库++LobeChat 提供了内置的客户端数据库体验。+但某些重要功能仅在服务端开发中可用。++为了使用服务端数据库功能,+需要参考 [部署服务端数据库](https://lobehub.com/docs/self-hosting/server-database) 的说明来配置所有前置条件。+本文档提供了一个更简化的配置方法,能够在本地开发时快速启动简化的服务端环境。++## 快速设置++### 环境配置++项目已经包含了一个 `.env.development` 文件,其中包含服务端数据库模式所需的所有环境变量。此文件配置了:++- **服务模式**: `NEXT_PUBLIC_SERVICE_MODE=server`+- **数据库**: 带连接字符串的 PostgreSQL+- **身份验证**: 带 Casdoor SSO 的 NextAuth+- **存储**: MinIO S3 兼容存储+- **搜索**: SearXNG 搜索引擎++### 启动 Docker 服务++使用 Docker Compose 启动所有必需的服务:++```bash+docker-compose -f docker-compose.development.yml up -d+```++这将启动以下服务:++- PostgreSQL 数据库(端口 5432)+- MinIO 存储(端口 9000)+- Casdoor 身份验证(端口 8000)+- SearXNG 搜索(端口 8080)++### 运行数据库迁移++执行数据库迁移脚本以创建所有必要的表:++```bash+pnpm db:migrate+```++预期输出:`✅ database migration pass.`++### 启动开发服务器++启动 LobeChat 开发服务器:++```bash+pnpm dev+```++服务器将在 `http://localhost:3010` 上启动++可以通过运行以下命令检查所有 Docker 服务运行状态:++```bash+docker-compose -f docker-compose.development.yml ps+```++### 重置服务++如遇到问题,可以重置整个服务堆栈:++```bash+# 停止并删除所有容器+docker-compose -f docker-compose.development.yml down++# 删除卷(这将删除所有数据)+docker-compose -f docker-compose.development.yml down -v++# 重新启动+docker-compose -f docker-compose.development.yml up -d+pnpm db:migrate+```diff --git a/docs/self-hosting/advanced/s3/cloudflare-r2.mdx b/docs/self-hosting/advanced/s3/cloudflare-r2.mdxindex 17bc8860bbf..3517814d316 100644--- a/docs/self-hosting/advanced/s3/cloudflare-r2.mdx+++ b/docs/self-hosting/advanced/s3/cloudflare-r2.mdx@@ -85,7 +85,7 @@ We need to configure an S3 storage service in the server-side database to store<Image alt={'Configure allowed site domain'} src={'https://github.com/lobehub/lobe-chat/assets/28616219/dfcc2cb3-2958-4498-a8a4-51bec584fe7d'} /><Callout type={'info'}>- If you also plan to use the desktop client, add <code>http://localhost:3015</code> to <code>AllowedOrigins</code> so the desktop client (running locally) can access R2.+ If you also plan to use the desktop client, add <code>[http://localhost:3015](http://localhost:3015)</code> to <code>AllowedOrigins</code> so the desktop client (running locally) can access R2.</Callout>Example configuration is as follows:diff --git a/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx b/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdxindex 3886cfae96e..304c847599e 100644--- a/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx+++ b/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx@@ -82,11 +82,11 @@ tags:添加跨域规则,允许你的域名(在上文是 `https://your-project.vercel.app`)来源的请求:<Image alt={'配置允许你的站点域名'} src={'https://github.com/lobehub/lobe-chat/assets/28616219/dfcc2cb3-2958-4498-a8a4-51bec584fe7d'} />+<Callout type={'info'}>- 如果你还需要在桌面端使用,请在 <code>AllowedOrigins</code> 中额外添加 <code>http://localhost:3015</code>,以便桌面端(本地运行)能够访问 R2。+ 如果你还需要在桌面端使用,请在 <code>AllowedOrigins</code> 中额外添加 <code>[http://localhost:3015](http://localhost:3015)</code>,以便桌面端(本地运行)能够访问 R2。</Callout>-示例配置如下:```jsondiff --git a/package.json b/package.jsonindex 2af38511623..1e714fa5e56 100644--- a/package.json+++ b/package.json@@ -327,6 +327,7 @@"crypto-js": "^4.2.0","dbdocs": "^0.16.0","dotenv": "^17.0.0",+ "dotenv-expand": "^12.0.2","dpdm-fast": "^1.0.13","drizzle-dbml-generator": "^0.10.0","drizzle-kit": "^0.31.4",