feat: implement job management for companies in public job fairs
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-15 15:46:15 +08:00
parent f0c841e9c5
commit 2e88885a27
11 changed files with 804 additions and 131 deletions

View File

@@ -4,7 +4,7 @@ set -Eeuo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
BUILD_DIR="${BUILD_DIR:-${ROOT_DIR}/shihezi}"
DEPLOY_HOST="${DEPLOY_HOST:-39.98.44.136}"
DEPLOY_HOST="${DEPLOY_HOST:-47.111.103.66}"
DEPLOY_USER="${DEPLOY_USER:-root}"
DEPLOY_SSH_PORT="${DEPLOY_SSH_PORT:-22}"
DEPLOY_PATH="${DEPLOY_PATH:-/opt/service/project/shz-admin/dist}"
@@ -40,7 +40,7 @@ usage() {
默认配置(均可通过环境变量覆盖):
DEPLOY_USER SSH 用户名,默认 root
DEPLOY_PATH 服务器上的前端静态文件目录,默认 /opt/service/project/shz-admin/dist
DEPLOY_HOST SSH 主机,默认 39.98.44.136
DEPLOY_HOST SSH 主机,默认 47.111.103.66
DEPLOY_SSH_PORT SSH 端口,默认 22
BUILD_DIR 本地构建目录,默认 ./shihezi由 config/config.ts 的 outputPath 决定)
YARN_CMD Yarn 命令,默认 yarn

View File

@@ -0,0 +1,44 @@
# shz-admin 前端与现有 SHZ 后端代理配置。
# 安装位置:/etc/nginx/default.d/shz-admin.conf
client_max_body_size 100m;
location = /shihezi {
return 301 /shihezi/;
}
location = /shihezi/index.html {
alias /opt/service/project/shz-admin/dist/index.html;
add_header Cache-Control "no-cache, no-store, must-revalidate" always;
}
location /shihezi/ {
alias /opt/service/project/shz-admin/dist/;
try_files $uri $uri/ /shihezi/index.html;
add_header Cache-Control "no-cache" always;
}
location /api/shihezi/ {
# 对外保留 /api/shihezi/ 前缀,转发到本机后端时剥离该前缀。
proxy_pass http://127.0.0.1:9091/;
proxy_http_version 1.1;
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;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_buffering off;
}
location /data/file/ {
proxy_pass http://127.0.0.1:9091/data/file/;
proxy_http_version 1.1;
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;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
}