刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 1 | -- 10.0.init.sql |
| 2 | |
刘洪青 | c04a9b5 | 2021-01-18 22:12:09 +0800 | [diff] [blame] | 3 | /* |
| 4 | 将 paas.example.com 替换为 paas.学校域名.edu.cn |
| 5 | */ |
| 6 | |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 7 | |
| 8 | use cas_server; |
| 9 | |
刘洪青 | c9ac631 | 2020-11-05 15:50:20 +0800 | [diff] [blame] | 10 | -- 更新 服务 personal-security-center 的信息 |
刘洪青 | c9ac631 | 2020-11-05 15:50:20 +0800 | [diff] [blame] | 11 | update TB_SERVICE |
| 12 | set |
| 13 | INFORMATION_URL='http://personal-security-center.paas.example.com', |
刘洪青 | c04a9b5 | 2021-01-18 22:12:09 +0800 | [diff] [blame] | 14 | LOGOUT_URL='http://personal-security-center.paas.example.com/slo?redirect_uri=http://security-center.paas.example.com/?clearCertification=clearCertification', |
刘洪青 | c9ac631 | 2020-11-05 15:50:20 +0800 | [diff] [blame] | 15 | SERVICE_ID='http://personal-security-center.paas.example.com/cas/(.*)' |
| 16 | where ID='2'; -- todo, modify |
| 17 | |
| 18 | |
| 19 | -- security-center-ui 认证对接信息 |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 20 | |
| 21 | INSERT INTO `TB_SERVICE` (`ID`, `COMPANY_ID`, `DELETED`, `ADD_ACCOUNT`, `ADD_TIME`, |
| 22 | `NAME`, `DESCRIPTION`, `INFORMATION_URL`, `LOGOUT_URL`, |
| 23 | `RESPONSE_TYPE`, `LOGOUT_TYPE`, |
| 24 | `EVALUATION_ORDER`, `FRIENDLY_NAME`, `REGISTERED_SERVICE_ID`, `SERVICE_ID`, |
| 25 | `ENABLED`, `SSO_ENABLED`, `REQUIRE_ALL_ATTRIBUTES`, |
| 26 | `APPLICATION_ID`, `EXTERNAL_ID`) |
| 27 | VALUES ('22', '1', 0, 'admin', '2020-07-01 00:00:00', |
刘洪青 | 7ab4091 | 2021-05-12 18:22:48 +0800 | [diff] [blame] | 28 | '安全中心', '安全中心', 'https://security-center.paas.example.com', 'https://security-center.paas.example.com/?clearCertification=clearCertification', |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 29 | 'REDIRECT', 'FRONT_CHANNEL', |
| 30 | 22, '安全中心', 22, 'https://security-center.paas.example.com/(.*)', |
| 31 | 1, 1, 1, |
| 32 | '22', '22'); |
| 33 | |
| 34 | commit; |
| 35 | |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 36 | -- 修改根域名 |
| 37 | update TB_SERVICE |
| 38 | set |
| 39 | INFORMATION_URL='http://security-center.paas.example.com', |
刘洪青 | 7ab4091 | 2021-05-12 18:22:48 +0800 | [diff] [blame] | 40 | LOGOUT_URL='http://security-center.paas.example.com/?clearCertification=clearCertification', |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 41 | SERVICE_ID='http://security-center.paas.example.com/(.*)', |
| 42 | ID_TOKEN_ENABLED=1, |
| 43 | JWT_AS_SERVICE_TICKET=1, |
| 44 | APPLICATION_DOMAIN='security-center.paas.example.com' |
| 45 | where ID='22'; -- todo, modify |
| 46 | |
| 47 | commit; |
| 48 | |
| 49 | |
刘洪青 | 906980d | 2020-09-20 16:26:15 +0800 | [diff] [blame] | 50 | -- 请注意图片的后缀名,须与实际的文件名保持一致 |
| 51 | update TB_CONFIG set CONFIG_VALUE='cas-server-site-ui__logo.png' where ID='51'; -- casServer.config.logo |
| 52 | update TB_CONFIG set CONFIG_VALUE='cas-server-site-ui__logo.png' where ID='52'; -- casServer.config.logoM |
| 53 | |
| 54 | update TB_CONFIG set CONFIG_VALUE='cas-server-site-ui__bg.png' where ID='53'; -- casServer.config.bg |
| 55 | update TB_CONFIG set CONFIG_VALUE='cas-server-site-ui__bg.png' where ID='54'; -- casServer.config.bgM |
| 56 | |
| 57 | update TB_CONFIG set CONFIG_VALUE='409EFF' where ID='55'; -- casServer.config.schemeColor |
| 58 | |
| 59 | update TB_CONFIG set CONFIG_VALUE='cas-server-site-ui__icon.png' where ID='56'; -- casServer.config.iconImageUrl |
| 60 | |
| 61 | update TB_CONFIG set CONFIG_VALUE='https://example.com/download.htm' where ID='57'; -- casServer.config.superappDownloadUrl |
| 62 | update TB_CONFIG set CONFIG_VALUE='超级APP' where ID='57-1'; -- casServer.config.superappName |
| 63 | |
| 64 | update TB_CONFIG set CONFIG_VALUE='cas-server-site-ui__favicon.ico' where ID='58'; -- casServer.config.webFavicon |
| 65 | update TB_CONFIG set CONFIG_VALUE='树维信息' where ID='59'; -- casServer.config.webTitle |
| 66 | |
| 67 | update TB_CONFIG set CONFIG_VALUE='' where ID='61'; -- casServer.config.copyrightContent |
| 68 | update TB_CONFIG set CONFIG_VALUE='' where ID='62'; -- casServer.config.copyrightContentM |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 69 | |