刘洪青 | d0187d0 | 2020-08-19 14:55:05 +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', |
| 15 | LOGOUT_URL='http://admin-center.paas.example.com/cas/slo', |
| 16 | SERVICE_ID='http://admin-center.paas.example.com/cas/(.*)' |
| 17 | where ID='1'; -- todo, modify |
| 18 | |
| 19 | -- 更新 服务 personal-security-center 的信息 |
| 20 | |
| 21 | update TB_SERVICE |
| 22 | set |
| 23 | INFORMATION_URL='http://personal-security-center.paas.example.com', |
| 24 | LOGOUT_URL='http://personal-security-center.paas.example.com/cas/slo', |
| 25 | SERVICE_ID='http://personal-security-center.paas.example.com/cas/(.*)' |
| 26 | where ID='2'; -- todo, modify |
| 27 | |
| 28 | commit; |
| 29 | |
| 30 | |
| 31 | use user_authz; |
| 32 | |
| 33 | -- 更新 admin-center 下的角色同步地址 |
| 34 | |
| 35 | update TB_APPLICATION |
| 36 | set |
| 37 | SYNC_URL='http://admin-center.paas.example.com/api/v1/open/sync/roles' |
| 38 | where ID='1'; -- todo, modify |
| 39 | |
| 40 | commit; |
| 41 | |
| 42 | |
| 43 | use admin_center; |
| 44 | |
| 45 | -- 更新 admin-management 下菜单的访问域 |
| 46 | |
| 47 | update TB_MGT_PERMISSION |
| 48 | set |
| 49 | ORIGIN='http://admin-management.paas.example.com' |
| 50 | where APPLICATION_ID='00000' |
| 51 | ; |
| 52 | |
| 53 | commit; |
| 54 | |
| 55 | |
| 56 | -- 更新 admin-platform 下菜单的访问域 |
| 57 | |
| 58 | update TB_MGT_PERMISSION |
| 59 | set |
| 60 | ORIGIN='http://admin-platform.paas.example.com' |
| 61 | where APPLICATION_ID='1' |
| 62 | ; |
| 63 | |
| 64 | commit; |
| 65 | |
| 66 | /* |
| 67 | insert into TB_MGT_ROUTE (ID, DELETED, CODE, NAME, STATUS, PATH_PREFIX, URL, STRIP_PREFIX) |
| 68 | values ('23', 0, 'user-biz', '用户服务 - 业务接口', '1', '/api/v1/user/biz', 'http://localhost:8023/api/v1/biz', 1); |
| 69 | |
| 70 | 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'; |
| 71 | |
| 72 | commit; |
| 73 | */ |