Files
resume/nginx.conf
T
wonder a6af277ac7
Deploy Resume / deploy (push) Successful in 3s
feat: 添加纯文本简历及 /txt 路由
- 基于主简历重新构建 resume.txt,分模块便于复制粘贴到招聘系统
- 同步主简历最新内容(七牛云认证网关、PG HA、Ansible MySQL 等)
- 补齐荣誉奖项(七牛云 XEngineer、飞书黑客松)
- nginx 新增 location = /txt 路由,返回纯文本
- Dockerfile 新增 COPY resume.txt 到镜像
2026-08-28 13:24:48 +08:00

52 lines
1.3 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 /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/plain; charset=utf-8";
alias /usr/share/nginx/html/resume.txt;
}
# 根路径重定向到主简历
location = / {
return 301 /resume/;
}
}