add forum

This commit is contained in:
2025-11-15 09:50:55 +08:00
parent 3014317c12
commit b2f3a8f140
4 changed files with 532 additions and 25113 deletions

View File

@@ -6,8 +6,11 @@
import axios from 'axios';
// Elasticsearch 配置
// 使用 Nginx 代理路径避免 Mixed Content 问题
const ES_CONFIG = {
baseURL: 'http://222.128.1.157:19200',
baseURL: process.env.NODE_ENV === 'production'
? '/es-api' // 生产环境使用 Nginx 代理
: 'http://222.128.1.157:19200', // 开发环境直连
timeout: 10000,
headers: {
'Content-Type': 'application/json',