Merge pull request #221 from jamebal/recycle

perf: 博客地址改为相对路径, 可以直接通过"网盘地址+/blog" 访问,需要设置站点地址
This commit is contained in:
jmal 2024-07-08 16:35:48 +08:00 committed by GitHub
commit a942076851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;