刘洪青 | f457fbd | 2020-09-10 11:26:12 +0800 | [diff] [blame] | 1 | -- 10.1.init.sql |
| 2 | |
| 3 | /* |
| 4 | 将 paas.example.com 替换为 paas.学校域名.edu.cn |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | use cas_server; |
| 9 | |
| 10 | -- 更新 服务 admin-center 的信息 |
| 11 | |
| 12 | update TB_SERVICE |
| 13 | set |
| 14 | INFORMATION_URL='http://admin-center.paas.example.com', |
刘洪青 | b1a46b5 | 2021-01-12 23:11:21 +0800 | [diff] [blame] | 15 | LOGOUT_URL='https://admin-center.paas.example.com/slo?redirect_uri=https://admin-platform.paas.example.com?clearCertification=Admin-Token', |
刘洪青 | f457fbd | 2020-09-10 11:26:12 +0800 | [diff] [blame] | 16 | SERVICE_ID='http://admin-center.paas.example.com/cas/(.*)' |
| 17 | where ID='1'; -- todo, modify |
| 18 | |
刘洪青 | 80efa42 | 2020-11-05 15:49:18 +0800 | [diff] [blame] | 19 | commit; |
刘洪青 | f457fbd | 2020-09-10 11:26:12 +0800 | [diff] [blame] | 20 | |
刘洪青 | 80efa42 | 2020-11-05 15:49:18 +0800 | [diff] [blame] | 21 | |
刘洪青 | f457fbd | 2020-09-10 11:26:12 +0800 | [diff] [blame] | 22 | use user_authz; |
| 23 | |
| 24 | -- 更新 admin-center 下的角色同步地址 |
| 25 | |
| 26 | update TB_APPLICATION |
| 27 | set |
| 28 | SYNC_URL='http://admin-center.paas.example.com/api/v1/open/sync/roles' |
| 29 | where ID='1'; -- todo, modify |
| 30 | |
| 31 | commit; |
| 32 | |
| 33 | |
| 34 | use admin_center; |
| 35 | |
| 36 | -- 更新 admin-management 下菜单的访问域 |
| 37 | |
| 38 | update TB_MGT_PERMISSION |
| 39 | set |
| 40 | ORIGIN='http://admin-management.paas.example.com' |
| 41 | where APPLICATION_ID='00000' |
| 42 | ; |
| 43 | |
| 44 | commit; |
| 45 | |
| 46 | |
| 47 | -- 更新 admin-platform 下菜单的访问域 |
| 48 | |
| 49 | update TB_MGT_PERMISSION |
| 50 | set |
| 51 | ORIGIN='http://admin-platform.paas.example.com' |
| 52 | where APPLICATION_ID='1' |
| 53 | ; |
| 54 | |
| 55 | commit; |
| 56 | |
| 57 | /* |
| 58 | insert into TB_MGT_ROUTE (ID, DELETED, CODE, NAME, STATUS, PATH_PREFIX, URL, STRIP_PREFIX) |
| 59 | values ('23', 0, 'user-biz', '用户服务 - 业务接口', '1', '/api/v1/user/biz', 'http://localhost:8023/api/v1/biz', 1); |
| 60 | |
| 61 | update TB_MGT_ROUTE set URL='http://user-data-service-biz-svc.user-data-service.svc.cluster.local:8080/api/v1/biz' where ID='23'; |
| 62 | |
| 63 | commit; |
| 64 | */ |