mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 16:41:54 +08:00
- Replace password-based login with OAuth authentication - Add OAuth login and callback handlers - Support user whitelist via environment variables - Update login page to use OAuth flow - Remove legacy metrics-related authentication configuration - Enhance token management with username tracking
39 lines
847 B
JSON
39 lines
847 B
JSON
{
|
|
"MAP": {
|
|
"/path1": {
|
|
"DefaultTarget": "https://path1.com/path/path/path",
|
|
"ExtensionMap": {
|
|
"jpg,png,avif": "https://path1-img.com/path/path/path",
|
|
"mp4,webm": "https://path1-video.com/path/path/path"
|
|
},
|
|
"SizeThreshold": 204800
|
|
},
|
|
"/path2": "https://path2.com",
|
|
"/path3": {
|
|
"DefaultTarget": "https://path3.com",
|
|
"SizeThreshold": 512000
|
|
}
|
|
},
|
|
"Compression": {
|
|
"Gzip": {
|
|
"Enabled": false,
|
|
"Level": 6
|
|
},
|
|
"Brotli": {
|
|
"Enabled": false,
|
|
"Level": 4
|
|
}
|
|
},
|
|
"FixedPaths": [
|
|
{
|
|
"Path": "/cdnjs",
|
|
"TargetHost": "cdnjs.cloudflare.com",
|
|
"TargetURL": "https://cdnjs.cloudflare.com"
|
|
},
|
|
{
|
|
"Path": "/jsdelivr",
|
|
"TargetHost": "cdn.jsdelivr.net",
|
|
"TargetURL": "https://cdn.jsdelivr.net"
|
|
}
|
|
]
|
|
} |