Skip to content

Commit

Permalink
📝 docs(authentication): add varible NEXTAUTH_URL (lobehub#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
cy948 authored Feb 20, 2024
1 parent 2b3e457 commit cf78c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/self-hosting/advanced/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ When deploying LobeChat, you need to configure the following environment variabl
| `AUTH0_CLIENT_SECRET` | Required | Client Secret of the Auth0 application |
| `AUTH0_ISSUER` | Required | Domain of the Auth0 application, `https://example.auth0.com` |
| `ACCESS_CODE` | Required | Add a password to access this service. You can set a sufficiently long random password to "disable" access code authorization. |
| `NEXTAUTH_URL` | Optional | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |

You can refer to the related variable details at [Environment Variables](/en/self-hosting/environment-variable#auth0).

Expand Down
1 change: 1 addition & 0 deletions docs/self-hosting/advanced/authentication.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ http(s)://your-domain/api/auth/callback/auth0
| `AUTH0_CLIENT_SECRET` | 必选 | Auth0 应用程序的 Client Secret |
| `AUTH0_ISSUER` | 必选 | Auth0 应用程序的 Domain,`https://example.auth0.com` |
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
| `NEXTAUTH_URL` | 可选 | 该URL用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |

前往 [环境变量](/zh/self-hosting/environment-variable#auth0) 可查阅相关变量详情。

Expand Down

0 comments on commit cf78c5b

Please sign in to comment.