Refine configuration for dev profile (#2753)

#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

1. 增加console代理配置,默认代理到`http://localhost:3000/`。
2. 增加用户名密码初始化配置。
3. 增加win profile,指定与dev profile中不同的r2dbc url,windows环境下调试时可以使用 `dev,win` profile。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/2791/head
BugKing 2022-11-28 14:26:16 +08:00 committed by GitHub
parent de983a2e46
commit 569cea4ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -9,7 +9,14 @@ spring:
cache: false
halo:
console:
proxy:
endpoint: http://localhost:3000/
enabled: true
security:
initializer:
super-admin-username: admin
super-admin-password: admin
oauth2:
jwt:
jwsAlgorithm: rs512

View File

@ -0,0 +1,5 @@
spring:
r2dbc:
url: r2dbc:h2:file:///~/halo2-dev/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE
halo:
work-dir: ${user.home}/halo2-dev