Browse Source

从url中获取一期地址

dev
zhuibobo 4 weeks ago
parent
commit
36061b7cd8
  1. 50
      ng/1/nginx.conf
  2. 2
      zdxt-web-client/zdxt-admin-plus-ui/src/store/modules/permission.ts

50
ng/1/nginx.conf

@ -24,6 +24,9 @@ http {
include mime.types;
default_type application/octet-stream;
# 允许带下划线_的header
underscores_in_headers on;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
@ -39,13 +42,52 @@ http {
#gzip on;
server {
listen 12004;
location / {
proxy_pass http://10.76.108.1:85;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /efcode20-sup-web/ {
proxy_pass http://10.76.108.15:12004/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# 民生述求跳转
location /mssq_proxy/ {
proxy_pass http://10.224.158.101:8182/proxy/;
# 保留原始请求头
proxy_pass_request_headers on;
proxy_pass_request_body on;
# 关键:不要伪造 Host
proxy_set_header Host $proxy_host;
# 保留客户端信息
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# token / session 常用
proxy_set_header Authorization $http_authorization;
proxy_set_header Cookie $http_cookie;
# 保持长连接行为
proxy_http_version 1.1;
# 如果接口有响应跳转地址,自动改回来
proxy_redirect off;
}
# 政务微信跳转
location /zwwx_proxy/ {
proxy_pass https://zwwx-hlht.sz.gov.cn:30443/;
# 保持长连接行为
proxy_http_version 1.1;
}
}
server {
listen 80;
@ -58,8 +100,14 @@ http {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
location /efcode20-sup-web/ {
proxy_pass http://10.76.108.15:12004/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html

2
zdxt-web-client/zdxt-admin-plus-ui/src/store/modules/permission.ts

@ -28,7 +28,7 @@ export interface SystemCodeOption {
export const CATCH_ALL_ROUTE_NAME = 'CatchAll404';
//http://10.132.108.3:85/loginByUserId
export const systemCodeOptions: SystemCodeOption[] = [
{ label: '首页', value: 'planindex', icon: 'HomeFilled', iframeUrl: 'http://Same-origin/loginByUserId' },
{ label: '首页', value: 'planindex', icon: 'HomeFilled', iframeUrl: 'Same-origin/loginByUserId' },
{ label: '执法监督码', value: 'supervisionCode', icon: 'Document' },
{ label: '后台管理', value: 'authService', icon: 'Setting' }
];

Loading…
Cancel
Save