From 4fdea96f095c4b2d152813150ec63dc7acf08175 Mon Sep 17 00:00:00 2001 From: Li Date: Mon, 27 Feb 2023 22:08:17 +0800 Subject: [PATCH] docs: add a tip for default admin username and password for development environment (#192) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加开发环境下初始管理员用户名和密码的提示 /kind documentation Fixes #188 ```release-note None ``` --- docs/developer-guide/core/run.md | 13 +++++++++++++ .../version-2.0/developer-guide/core/run.md | 13 +++++++++++++ .../version-2.1/developer-guide/core/run.md | 13 +++++++++++++ .../version-2.2/developer-guide/core/run.md | 13 +++++++++++++ 4 files changed, 52 insertions(+) diff --git a/docs/developer-guide/core/run.md b/docs/developer-guide/core/run.md index ba7ad7c..5e4603f 100644 --- a/docs/developer-guide/core/run.md +++ b/docs/developer-guide/core/run.md @@ -103,3 +103,16 @@ halo: ``` 5. 最终访问 `http://localhost:8090/console` 即可进入控制台。访问 `http://localhost:8090` 即可进入站点首页。 + +:::info +开发环境下,超级管理员的默认用户名为 `admin`,默认密码为 `admin`。也可通过修改 `application-dev.yaml` 配置文件进行更改: + +```yaml +halo: + security: + initializer: + super-admin-username: admin + super-admin-password: admin +``` + +::: diff --git a/versioned_docs/version-2.0/developer-guide/core/run.md b/versioned_docs/version-2.0/developer-guide/core/run.md index ba7ad7c..5e4603f 100644 --- a/versioned_docs/version-2.0/developer-guide/core/run.md +++ b/versioned_docs/version-2.0/developer-guide/core/run.md @@ -103,3 +103,16 @@ halo: ``` 5. 最终访问 `http://localhost:8090/console` 即可进入控制台。访问 `http://localhost:8090` 即可进入站点首页。 + +:::info +开发环境下,超级管理员的默认用户名为 `admin`,默认密码为 `admin`。也可通过修改 `application-dev.yaml` 配置文件进行更改: + +```yaml +halo: + security: + initializer: + super-admin-username: admin + super-admin-password: admin +``` + +::: diff --git a/versioned_docs/version-2.1/developer-guide/core/run.md b/versioned_docs/version-2.1/developer-guide/core/run.md index ba7ad7c..5e4603f 100644 --- a/versioned_docs/version-2.1/developer-guide/core/run.md +++ b/versioned_docs/version-2.1/developer-guide/core/run.md @@ -103,3 +103,16 @@ halo: ``` 5. 最终访问 `http://localhost:8090/console` 即可进入控制台。访问 `http://localhost:8090` 即可进入站点首页。 + +:::info +开发环境下,超级管理员的默认用户名为 `admin`,默认密码为 `admin`。也可通过修改 `application-dev.yaml` 配置文件进行更改: + +```yaml +halo: + security: + initializer: + super-admin-username: admin + super-admin-password: admin +``` + +::: diff --git a/versioned_docs/version-2.2/developer-guide/core/run.md b/versioned_docs/version-2.2/developer-guide/core/run.md index ba7ad7c..5e4603f 100644 --- a/versioned_docs/version-2.2/developer-guide/core/run.md +++ b/versioned_docs/version-2.2/developer-guide/core/run.md @@ -103,3 +103,16 @@ halo: ``` 5. 最终访问 `http://localhost:8090/console` 即可进入控制台。访问 `http://localhost:8090` 即可进入站点首页。 + +:::info +开发环境下,超级管理员的默认用户名为 `admin`,默认密码为 `admin`。也可通过修改 `application-dev.yaml` 配置文件进行更改: + +```yaml +halo: + security: + initializer: + super-admin-username: admin + super-admin-password: admin +``` + +:::