请输入
菜单

2、配置文件emap.properties+数据库配置表T_LWPUB_PROPS调整

2、配置文件emap.properties+数据库配置表T_LWPUB_PROPS调整

一、emap.properties添加配置项,路径:/opt/wiseduAppGroups/qljfwappnew/ROOT

1.填写配置如下:

#配置访问地址服务访问前缀地址
lwpub.context.url=https://ehall.xx.edu.cn/qljfwapp

2.添加匿名登录需要放行的地址:

#匿名登录时,放行的白名单,默认配置公共服务中需要放行的地址

auth.ignores=/sys/lwPsTzggApp/index.do,/sys/emapcomponent/*/*/*,/sys/lwWiseduOffcampusPerCheckin/*default/guest.do,/sys/emapflow/tasks/queryFlowState.do,/sys/lwWiseduOffcampusPerCheckin/modules/guest/*,/sys/lwWiseduOffcampusPerCheckin/modules/guest.do,/sys/lwWiseduOffcampusPerCheckin/api/*,/sys/lwpub/mobile/api/public/*,/sys/lwPsTxzgl/*default/guest.do,/sys/lwPersonnelManage/guestRegister.do,/sys/lwPersonnelManage/applyRegister.do,/sys/lwPersonnelManage/modules/guestRegister.do,/sys/lwPersonnelManage/modules/guestRegister/*,/sys/lwPersonnelManage/modules/guest.do,/sys/lwPersonnelManage/modules/guest/*,/sys/lwPersonnelManage/*default/guest.do,/sys/lwPersonnelManage/*default/mobile/*,/sys/lwPersonnelManage/mob/*,/code/*,/sys/emappagelog/config/lwPersonnelManage.do,/sys/emapcomponent/*/*/*,/sys/lwpub/metaData/*,/sys/lwpub/mobile/api,/sys/lwpub/public/mob,/sys/emapflow/*

3.nginx轻服务对应的qljfwapp_location.conf文件(路径/opt/ids_nginx_config/vhosts_conf/app_location)中增加:

然后重载service nginx reload; 使配置生效

location ^~ /qljfwapp/code/{
charset utf-8;
default_type text/plain;
access_by_lua_file /opt/ids_nginx_config/lua/mod_cas_anonymous.lua;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://qljfwapp_server;
}

location ~* /qljfwapp/sys/emapcomponent {
default_type text/plain;
access_by_lua_file /opt/ids_nginx_config/lua/mod_cas_anonymous.lua;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://qljfwapp_server;
}

location ~* /qljfwapp/sys/emapflow {
default_type text/plain;
access_by_lua_file /opt/ids_nginx_config/lua/mod_cas_anonymous.lua;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://qljfwapp_server;
}

location ~* /qljfwapp/sys/lwPersonnelManage/(\*default/guest.do|modules/guest.do|modules/guest/.*|\*default/mobile/.*|mob/.*|w/.*|exposeapi/.*.do|api/.*.do|wxLogin/.*.do|modules/guestRegister/.*|modules/guestRegister.do|guestRegister.do|applyRegister.do) {
default_type text/plain;
access_by_lua_file /opt/ids_nginx_config/lua/mod_cas_anonymous.lua;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://qljfwapp_server;

4、T_LWPUB_PROPS表调整:

使用轻服务数据库用户usr_qljfw访问数据库,打开T_LWPUB_PROPS表,针对学校环境进行修改。

配置参数说明 配置参数 参数值
业务流程的主业务域 TASK_PROPS.BIZ_DOMIAN oh
系统的tagId MR_PROPS.TAG_ID 1012
学校的code MR_PROPS.SCHOOL_CODE 学校的schoolId
公共资源的地址 COMMON_PROPS.RES_SERVER

静态资源RES地址

http://res.xxx.edu.cn

服务总线restful申请API的accessToken RESTFUL.ACCESS_TOKEN 学校总线的accessToken
服务总线restful申请API的appId RESTFUL.APP_ID amp
服务总线restful请求API的Url RESTFUL.HOST 学校总线的API地址,如http://apis.xxx.edu.cn
学校名字 SCHOOL_NAME 填写学校名称
公共服务的服务器前缀 PUBLIC_SERVER_PREFIX 轻量级服务域名前缀,例如:http://ehall.xxx.edu.cn/qljfwapp/sys
版权信息 FOOTER_VERSION_INFO 调整为学校实际情况

其他信息容易获取,这边着重说明服务总线鉴权信息appId和accessToken获取方式:

1)、学校有ESOP的,从ESOP中查看

登陆ESOP系统,切换至"amp用户",选中任意一个已经申请的接口查看对应信息,如下图:

2)、如果学校是融合门户平台

在minos中查看,具体方式:

PS-知识点说明:

配置服务总线restful信息,是为了调用总线接口,如访客在注册中心获取短信二维码,就是调用消息接口
消息接口url地址:http://apis.xx.xx.xx/mp_message_pocket_web-mp-restful-message-send/ProxyService/message_pocket_web-mp-restful-message-sendProxyService

最近修改: 2024-05-30Powered by