fix: 修复根路径重定向丢失端口问题
Deploy Resume / deploy (push) Successful in 4s

- 添加 absolute_redirect off 配置,使 nginx 使用相对路径重定向
- 避免容器内端口 80 与外部端口 8080 不一致导致重定向失败
This commit is contained in:
2026-08-27 18:57:51 +08:00
parent ac1753d643
commit 1124485f6a
+2 -1
View File
@@ -1,6 +1,7 @@
server {
listen 80;
server_name localhost;
absolute_redirect off;
root /usr/share/nginx/html;
index index.html;
@@ -38,7 +39,7 @@ server {
}
# 根路径重定向到主简历
location / {
location = / {
return 301 /resume/;
}
}