feat: 重构博客UI为现代极客风,增加Nginx反代与Markdown阅读器

This commit is contained in:
2026-10-22 14:51:47 +08:00
parent cb08080ca7
commit d4dc35bc87
6 changed files with 905 additions and 83 deletions
+19
View File
@@ -0,0 +1,19 @@
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
# 反向代理后端 Spring Boot API 接口,解决无法连接后端与跨域问题
location /api/ {
proxy_pass http://backend:8080/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}