Files
resume/nginx.conf
T
wonderandClaude Code eb26b87400
Deploy Resume / deploy (push) Failing after 5m57s
feat: 纯文本简历按版本拆分并新增 /txt 选择页
- resume/index.txt 与 soe/index.txt 分别对应主简历与央国企简历纯文本
- /txt 改为选择页,/txt/resume 与 /txt/soe 提供对应纯文本
- 删除过时的根目录 resume.txt,Dockerfile 与 README 同步更新

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-07 20:37:22 +08:00

73 lines
1.7 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 /resume/ {
alias /usr/share/nginx/html/resume/;
try_files $uri $uri/ /resume/index.html;
}
# 央国企简历
location /soe/ {
alias /usr/share/nginx/html/soe/;
try_files $uri $uri/ /soe/index.html;
}
# 其他简历导航页
location /other/ {
alias /usr/share/nginx/html/other/;
try_files $uri $uri/ /other/index.html;
}
# 基础架构工程师简历
location /other/infra-engineer/ {
alias /usr/share/nginx/html/other/infra-engineer/;
try_files $uri $uri/ /other/infra-engineer/index.html;
}
# 网络安全工程师简历
location /other/security-engineer/ {
alias /usr/share/nginx/html/other/security-engineer/;
try_files $uri $uri/ /other/security-engineer/index.html;
}
# 纯文本简历选择页
location = /txt {
default_type "text/html; charset=utf-8";
alias /usr/share/nginx/html/txt/index.html;
}
location = /txt/ {
return 301 /txt;
}
# 纯文本简历(便于复制粘贴到招聘系统)
location = /txt/resume {
default_type "text/plain; charset=utf-8";
alias /usr/share/nginx/html/resume/index.txt;
}
location = /txt/soe {
default_type "text/plain; charset=utf-8";
alias /usr/share/nginx/html/soe/index.txt;
}
# 根路径重定向到主简历
location = / {
return 301 /resume/;
}
}