refactor(api): 统一将/story/路径修改为/api/story/
All checks were successful
test/timeline-frontend/pipeline/head This commit looks good
All checks were successful
test/timeline-frontend/pipeline/head This commit looks good
修改服务端API路径前缀以保持一致性,涉及前端请求、nginx配置和代理设置
This commit is contained in:
@@ -30,7 +30,7 @@ http {
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
proxy_pass http://localhost:33333/file/;
|
||||
}
|
||||
location /story/ {
|
||||
location /api/story/ {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
@@ -38,7 +38,7 @@ http {
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header Authorization $http_authorization;
|
||||
proxy_pass http://localhost:33333/story/;
|
||||
proxy_pass http://localhost:33333/api/story/;
|
||||
}
|
||||
|
||||
# MinIO 对象存储代理
|
||||
|
||||
Reference in New Issue
Block a user