perf: 博客地址改为相对路径, 可以直接通过"网盘地址+/blog" 访问,需要设置站点地址

This commit is contained in:
jmal 2024-07-08 15:50:46 +08:00
parent 4ff19ab13e
commit 242caca4ef

View File

@ -89,6 +89,30 @@ http {
index index.html index.htm;
}
location = /blog/ {
proxy_pass http://jmalcloud:8088/articles;
proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr;
}
location /blog/api/ {
proxy_pass http://jmalcloud:8088/;
proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr;
}
location /blog/articles {
proxy_pass http://jmalcloud:8088/articles/;
proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr;
}
location /blog/ {
proxy_pass http://jmalcloud:8088/articles/;
proxy_set_header Host $proxy_host;
proxy_set_header X-real-ip $remote_addr;
}
location /api/ {
proxy_pass http://jmalcloud:8088/;
proxy_http_version 1.1;