Update config.go

This commit is contained in:
公明 2025-02-19 11:17:25 +08:00 committed by GitHub
parent f4fbf90cf9
commit 947a299f7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,4 +7,26 @@ const (
cookie2 = "cookie2" cookie2 = "cookie2"
) )
var suffixes = []string{".js", ".ico", ".png", ".jpg", "jpeg"} //这些后缀不扫 var suffixes = []string{
// 静态资源文件
".js", ".ico", ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg", ".ttf", ".woff", ".woff2", ".eot", ".otf",
".mp3", ".wav", ".ogg", ".mp4", ".webm", ".avi", ".css", ".scss", ".less",
// 临时文件和缓存文件
".tmp", ".temp", ".cache", ".swp",
// 日志文件
".log", ".err",
// 配置文件
".env", ".json", ".yml", ".yaml", ".xml", ".ini",
// 编译生成文件
".class", ".dll", ".so", ".zip", ".tar", ".gz",
// 其他常见文件
".txt", ".md", ".doc", ".docx", ".pdf", ".csv", ".xlsx", ".xls", ".sh", ".bat",
// 特殊用途文件
".gitignore", ".lock", ".bak",
} //这些后缀不扫