Skip to content

Commit

Permalink
chore: latest default data of Logto & lock version (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
baboon-king committed Jul 16, 2024
1 parent 933557a commit dbfb606
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ cp ./apps/client/.env.example ./apps/client/.env

### 3. Restore Data Of Logto

> The data in "logto_db_init_data. zip" is outdated and will be updated soon
> He does not support versions after Logto@1.14.
> Please manually configure Logto
Uncompress `logto_db_init_data.zip` to `.volumes/`

```bash
Expand All @@ -83,7 +79,7 @@ unzip logto_db_init_data.zip -d .volumes/

- Admin URL: http://localhost:3011
- Username: admin
- Password: wYJha:-eYMrAe9i
- Password: WkN7g5-i8ZrJckX

> if you want to [Manual Configuration Logto](https://github.com/cuixueshe/earthworm/wiki/%E8%BF%81%E7%A7%BB-Logto-%E7%94%A8%E6%88%B7%E7%B3%BB%E7%BB%9F%E5%90%8E%E6%9C%AC%E5%9C%B0%E5%90%AF%E5%8A%A8%E9%85%8D%E7%BD%AE%E6%96%B9%E6%A1%88%EF%BC%88%E8%B4%A1%E7%8C%AE%E8%80%85%EF%BC%89)
Expand Down
6 changes: 1 addition & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ cp ./apps/client/.env.example ./apps/client/.env

### 3. 恢复 Logto 的数据

> "logto_db_init_data.zip" 中的数据已过时,将很快更新
> 不支持 Logto@1.14 之后的版本
> 请手动配置 Logto
解压缩 `logto_db_init_data.zip``.volumes/`

```bash
Expand All @@ -83,7 +79,7 @@ unzip logto_db_init_data.zip -d .volumes/

- 后台地址: http://localhost:3011
- 用户名: admin
- 密码: wYJha:-eYMrAe9i
- 密码: WkN7g5-i8ZrJckX

> 如果你想 [手动配置 Logto](https://github.com/cuixueshe/earthworm/wiki/%E8%BF%81%E7%A7%BB-Logto-%E7%94%A8%E6%88%B7%E7%B3%BB%E7%BB%9F%E5%90%8E%E6%9C%AC%E5%9C%B0%E5%90%AF%E5%8A%A8%E9%85%8D%E7%BD%AE%E6%96%B9%E6%A1%88%EF%BC%88%E8%B4%A1%E7%8C%AE%E8%80%85%EF%BC%89)
Expand Down
4 changes: 2 additions & 2 deletions apps/api/.env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DATABASE_URL="postgres://postgres:password@localhost:5433/earthworm"
SECRET="sjldk92#sd903mnc./xklsjdf9sdfj"
REDIS_URL="redis://127.0.0.1:6379"
LOGTO_CLIENT_ID="ycgwrj3ohzkrmqkstsqjs"
LOGTO_CLIENT_SECRET="99dWl1L5vJeidwBXxTsjsDXb3kOf2jQX"
LOGTO_CLIENT_ID="aq0f6indu0vn2mvomtfrb"
LOGTO_CLIENT_SECRET="8GwCl4UQKB7oYtEmalNafrbJlC348quo"
LOGTO_M2M_API="https://default.logto.app/api"
LOGTO_ENDPOINT="http://localhost:3010/"
BACKEND_ENDPOINT="http://localhost:3001/"
Expand Down
2 changes: 1 addition & 1 deletion apps/client/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOGTO_APP_ID="qzif1teh62ezzf08pmeqn"
LOGTO_APP_ID="b4vtjjefuw6hh330518kp"
LOGTO_ENDPOINT="http://localhost:3010/"
BACKEND_ENDPOINT="http://localhost:3001/"
LOGTO_SIGN_IN_REDIRECT_URI="http://localhost:3000/callback"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ services:
depends_on:
logtoPostgres:
condition: service_healthy
image: svhd/logto:${TAG-latest}
image: svhd/logto:1.18.0
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ports:
- 3010:3010
Expand Down
Binary file modified logto_db_init_data.zip
Binary file not shown.

0 comments on commit dbfb606

Please sign in to comment.