chore(cleanup): 删除旧 Flask 配置里的阿里云 OSS 死代码

backend/config.py 里那组 region/endpoint/accessKey 与 file_url_pre 已无消费者;
同步把静态资源探测注释里的 aliyun.json 去掉(现在只会有 oss.json)。
This commit is contained in:
2026-10-23 09:00:03 +08:00
parent dbe35dfcb5
commit d9cb194575
2 changed files with 1 additions and 13 deletions
@@ -119,7 +119,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler(NoResourceFoundException.class)
public ResponseEntity<ApiResponse<Void>> handleNoResourceFoundException(NoResourceFoundException ex) {
// 静态资源 404。绝大部分是外部扫描器在探测 /.env、/credentials、aliyun.json、oss.json
// 静态资源 404。绝大部分是外部扫描器在探测 /.env、/credentials、oss.json
// 这类云凭据文件(线上单节点一天 580 条)。此前落到 handleException 里,既刷 ERROR 堆栈,
// 又把探测响应伪装成 HTTP 200;这里降为 debug 并如实返回 404。
log.debug("static resource not found: {}", ex.getMessage());