- 重构目录结构:css/、resume/、other/ 分离公共资源与简历页面 - 主简历迁移至 resume/index.html,路径指向 /resume - 新增导航页 /other,基础架构工程师和网络安全工程师两份简历 - 全局样式 css/resume.css 由所有简历共享 - 新增 Dockerfile 和 nginx.conf,基于 nginx:alpine 容器化部署 - 新增 .gitea/workflows/deploy.yml,推送到 main 自动构建部署 - 更新 README.md 记录项目结构和添加新简历流程 - 删除无用脚本 convert.js、convert.py、download_font.js
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# 主简历
|
||||
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 / {
|
||||
return 301 /resume/;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user