Files
resume/nginx.conf
T
wonder 0b9db1d401
Deploy Resume / deploy (push) Failing after 36s
重构:两维度四变体数据驱动简历站点
- 数据分层:base/experiences(事实) + companies(企业维度) + roles(岗位维度) + variants(变体覆盖),Handlebars 模板构建生成 4 份 HTML + 4 份纯文本 + 导航页
- 路由:根路由导航页(默认推荐 私企-全栈),/private/{dev,support}、/soe/{dev,support},旧地址 301 兼容
- 支持/交付岗不改写经历 bullet(与私企-dev 逐字一致),仅专业技能适配
- 移除 CSDN 与文档站链接
- 样式拆分 base + theme-private/theme-soe,打印样式去底色、条目不跨页
- Docker 多阶段构建(node 构建 → nginx 托管),新增 check.mjs 自检与 serve.mjs 本地预览
- 删除旧手写简历(resume/soe/other/txt)与重复样式
2026-11-03 12:20:24 +08:00

67 lines
1.5 KiB
Nginx Configuration File

server {
listen 80;
server_name localhost;
absolute_redirect off;
root /usr/share/nginx/html;
index index.html;
# 共享静态资源
location /css/ {
alias /usr/share/nginx/html/css/;
}
location /img/ {
alias /usr/share/nginx/html/img/;
}
# 纯文本简历(便于复制粘贴到招聘系统)
location ~ ^/txt/(private|soe)/(dev|support)$ {
default_type "text/plain; charset=utf-8";
alias /usr/share/nginx/html/txt/$1/$2/index.txt;
}
# 纯文本选择页
location = /txt {
default_type "text/html; charset=utf-8";
alias /usr/share/nginx/html/txt/index.html;
}
location = /txt/ {
return 301 /txt;
}
# ---- 旧地址兼容(301 到新地址,面试官旧链接不失效) ----
location = /resume {
return 301 /private/dev/;
}
location ^~ /resume/ {
return 301 /private/dev/;
}
location = /soe {
return 301 /soe/dev/;
}
location = /soe/ {
return 301 /soe/dev/;
}
location = /soe/index.html {
return 301 /soe/dev/;
}
location = /txt/resume {
return 301 /txt/private/dev;
}
location = /txt/soe {
return 301 /txt/soe/dev;
}
location = /other {
return 301 /;
}
location ^~ /other/ {
return 301 /;
}
# 根路由 = 导航页;四份简历:/private/dev/ /private/support/ /soe/dev/ /soe/support/
location / {
try_files $uri $uri/ =404;
}
}