update pay ui
This commit is contained in:
@@ -205,6 +205,17 @@ server {
|
|||||||
|
|
||||||
# 概念板块 API
|
# 概念板块 API
|
||||||
location /concept-api/ {
|
location /concept-api/ {
|
||||||
|
# 处理 OPTIONS 预检请求
|
||||||
|
if ($request_method = 'OPTIONS') {
|
||||||
|
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
||||||
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always;
|
||||||
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
|
add_header 'Access-Control-Max-Age' 86400;
|
||||||
|
add_header 'Content-Length' 0;
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
|
|
||||||
proxy_pass http://222.128.1.157:16801/;
|
proxy_pass http://222.128.1.157:16801/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -213,12 +224,7 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
|
|
||||||
|
|
||||||
if ($request_method = 'OPTIONS') {
|
|
||||||
return 204;
|
|
||||||
}
|
|
||||||
|
|
||||||
proxy_connect_timeout 60s;
|
proxy_connect_timeout 60s;
|
||||||
proxy_send_timeout 60s;
|
proxy_send_timeout 60s;
|
||||||
@@ -251,6 +257,17 @@ server {
|
|||||||
|
|
||||||
# 新闻搜索 API
|
# 新闻搜索 API
|
||||||
location /news-api/ {
|
location /news-api/ {
|
||||||
|
# 处理 OPTIONS 预检请求
|
||||||
|
if ($request_method = 'OPTIONS') {
|
||||||
|
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
||||||
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always;
|
||||||
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
|
add_header 'Access-Control-Max-Age' 86400;
|
||||||
|
add_header 'Content-Length' 0;
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
|
|
||||||
proxy_pass http://222.128.1.157:21891/;
|
proxy_pass http://222.128.1.157:21891/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -259,8 +276,7 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
|
|
||||||
|
|
||||||
proxy_connect_timeout 90s;
|
proxy_connect_timeout 90s;
|
||||||
proxy_send_timeout 90s;
|
proxy_send_timeout 90s;
|
||||||
@@ -269,6 +285,17 @@ server {
|
|||||||
|
|
||||||
# 研报搜索 API
|
# 研报搜索 API
|
||||||
location /report-api/ {
|
location /report-api/ {
|
||||||
|
# 处理 OPTIONS 预检请求
|
||||||
|
if ($request_method = 'OPTIONS') {
|
||||||
|
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
||||||
|
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always;
|
||||||
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
|
add_header 'Access-Control-Max-Age' 86400;
|
||||||
|
add_header 'Content-Length' 0;
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
|
|
||||||
proxy_pass http://222.128.1.157:8811/;
|
proxy_pass http://222.128.1.157:8811/;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -277,8 +304,7 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
add_header 'Access-Control-Allow-Origin' $cors_origin always;
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
|
|
||||||
|
|
||||||
proxy_connect_timeout 120s;
|
proxy_connect_timeout 120s;
|
||||||
proxy_send_timeout 120s;
|
proxy_send_timeout 120s;
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
|
import { getApiBase } from '../../utils/apiConfig';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bytedesk客服配置文件
|
* Bytedesk客服配置文件
|
||||||
* 通过代理访问 Bytedesk 服务器(解决 HTTPS 混合内容问题)
|
* 通过代理访问 Bytedesk 服务器(解决 HTTPS 混合内容问题)
|
||||||
- iframe 使用完整域名:https://valuefrontier.cn/bytedesk/chat/
|
- iframe 使用完整域名:https://api.valuefrontier.cn/chat/
|
||||||
- 使用 HTTPS 协议,解决生产环境 Mixed Content 错误
|
- 使用 HTTPS 协议,解决生产环境 Mixed Content 错误
|
||||||
- 生产:前端 Nginx 代理 /bytedesk → 43.143.189.195
|
- 生产:API 服务器 Nginx 代理 /bytedesk → 43.143.189.195
|
||||||
- baseUrl 保持官方 CDN(用于加载 SDK 外部模块)
|
- baseUrl 保持官方 CDN(用于加载 SDK 外部模块)
|
||||||
*/
|
*/
|
||||||
export const bytedeskConfig = {
|
export const bytedeskConfig = {
|
||||||
// API服务地址(如果 SDK 需要调用 API)
|
// API服务地址(通过 API 服务器代理)
|
||||||
apiUrl: '/bytedesk',
|
apiUrl: `${getApiBase()}/bytedesk`,
|
||||||
// 聊天页面地址(使用完整 HTTPS 域名,通过 /bytedesk/ 代理避免 React Router 冲突)
|
// 聊天页面地址(通过 API 服务器代理)
|
||||||
htmlUrl: 'https://valuefrontier.cn/chat/',
|
htmlUrl: `${getApiBase()}/chat/`,
|
||||||
// SDK 资源基础路径(保持 Bytedesk 官方 CDN,用于加载外部模块)
|
// SDK 资源基础路径(保持 Bytedesk 官方 CDN,用于加载外部模块)
|
||||||
baseUrl: 'https://www.weiyuai.cn',
|
baseUrl: 'https://www.weiyuai.cn',
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user