feat: 重构项目心跳数据结构并实现相关功能
- 重构Redis心跳数据结构,使用统一的项目列表键 - 新增数据迁移工具和API端点 - 更新前端以使用真实项目数据 - 添加系统部署配置和文档 - 修复代码格式和样式问题
This commit is contained in:
47
deploy/nginx/conf.d/bls_project_console.conf
Normal file
47
deploy/nginx/conf.d/bls_project_console.conf
Normal file
@@ -0,0 +1,47 @@
|
||||
# BLS Project Console - Nginx site (for nginx-in-docker)
|
||||
#
|
||||
# Place this file on SERVER:
|
||||
# /vol1/1000/Docker/nginx/conf.d/bls_project_console.conf
|
||||
#
|
||||
# Assumptions (based on your Nginx project layout):
|
||||
# - Host path /vol1/1000/Docker/nginx/sites is mounted into container as /var/www
|
||||
# so this project static files should be copied to:
|
||||
# /vol1/1000/Docker/nginx/sites/bls_project_console/
|
||||
# and will be served from:
|
||||
# /var/www/bls_project_console/
|
||||
# - Backend runs on the HOST at 127.0.0.1:3001.
|
||||
# Nginx container reaches host via host.docker.internal.
|
||||
# On Linux you typically need in nginx docker-compose:
|
||||
# extra_hosts:
|
||||
# - "host.docker.internal:host-gateway"
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name blv-rd.tech;
|
||||
|
||||
root /var/www/bls_project_console;
|
||||
index index.html;
|
||||
|
||||
# API reverse proxy
|
||||
location /api/ {
|
||||
proxy_pass http://host.docker.internal:3001;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
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_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_connect_timeout 5s;
|
||||
proxy_send_timeout 30s;
|
||||
proxy_read_timeout 30s;
|
||||
}
|
||||
|
||||
# SPA history mode
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
access_log /var/log/nginx-custom/access.log;
|
||||
error_log /var/log/nginx-custom/error.log warn;
|
||||
}
|
||||
Reference in New Issue
Block a user