40 Commits

Author SHA1 Message Date
1e65ccad58 refactor(internal/handler): simplify HTTP client configuration and remove strict CSP header 2024-11-17 10:36:34 +08:00
c71698e5ad refactor(internal/handler): optimize image request handling based on Accept header 2024-11-17 09:38:01 +08:00
e4d7a16f99 refactor(internal/handler): optimize image request handling and headers 2024-11-17 09:07:14 +08:00
fe6d604600 feat(internal/handler/proxy): enhance proxy handler to handle image requests and important headers
feat(internal/utils): add IsImageRequest function to identify image requests
2024-11-17 09:01:19 +08:00
17f9692ce6 refactor(config): optimize extension mapping handling and add utility methods 2024-11-17 08:24:57 +08:00
c2ba3e4d3d feat(config): add UnmarshalJSON method and update NewProxyHandler parameter type 2024-11-17 08:15:29 +08:00
74280e215e 新增支持: 按不同文件回源不同地址 2024-11-17 08:12:04 +08:00
2653014c89 refactor(handler): enhance mirror proxy handler with URL parsing and CORS headers 2024-11-13 19:50:50 +08:00
a7753f90d5 feat(internal/handler): add CORS support and handle OPTIONS requests in MirrorProxyHandler 2024-11-13 18:24:48 +08:00
2f0be5f38d feat(handler): add mirror proxy handler for URL prefix "/mirror/" 2024-11-13 17:50:06 +08:00
073d364695 style(internal/handler, internal/middleware): Refactor logging format for consistency and clarity 2024-11-03 08:33:38 +08:00
eda76c1683 refactor(internal/handler, internal/middleware): improve access log format and content 2024-11-03 08:10:45 +08:00
3c380ef5e9 refactor(internal/handler, internal/middleware): Move getClientIP and formatBytes to utils package 2024-10-31 08:38:07 +08:00
c2c6e14736 refactor(main): update handler matching logic to use function instead of prefix 2024-10-31 08:24:26 +08:00
b1b6a430cd refactor(internal): improve logging and byte format in proxy handlers 2024-10-31 08:07:03 +08:00
8f2c035e93 feat(config, middleware): add fixed paths configuration and proxy middleware 2024-10-31 07:44:54 +08:00
830eb864ef refactor(main): improve CDNJS path matching logic 2024-10-31 07:21:06 +08:00
06f6011b05 feat(middleware): add CDNJS middleware for handling specific paths 2024-10-31 07:15:48 +08:00
db003a3ae1 Merge branch 'main' of https://github.com/woodchen-ink/proxy-go 2024-10-31 01:26:37 +08:00
7af9c7cbc9 chore(Docker): simplify timezone setup and use environment variable for timezone 2024-10-31 01:26:34 +08:00
wood chen
a29fc15841
Create LICENSE 2024-10-31 00:39:12 +08:00
wood chen
569ae91e0a
Create dependabot.yml 2024-10-30 11:19:52 +08:00
78f9d431bc docs: Update configuration documentation and disable compression algorithms
Disable Gzip and Brotli compression algorithms in config.json and update readme.md accordingly
2024-10-30 11:18:13 +08:00
594cd0263e docs: Update README with new features and tips 2024-10-30 09:50:37 +08:00
4b902b5d92 refactor(handler): improve URL encoding and disable response compression 2024-10-30 09:40:02 +08:00
110f1efe83 chore(workflow): remove date step from docker build and update proxy.go
Remove unnecessary date step from docker build workflow and simplify proxy.go code
2024-10-30 09:23:08 +08:00
62b82bfb5a feat(internal/handler): enhance proxy handler to preserve compression and content type 2024-10-30 09:13:36 +08:00
d8e9b90105 fix(internal/handler): add URL parsing and update headers for proxy requests 2024-10-30 09:01:31 +08:00
3ea86189b1 feat(internal/handler): add logging and streaming for proxy handler 2024-10-30 08:37:40 +08:00
39605e0033 refactor(cmd/proxy): consolidate main function into single file 2024-10-30 07:44:29 +08:00
9fa26930ef Merge branch 'main' of https://github.com/woodchen-ink/proxy-go 2024-10-30 07:43:20 +08:00
723b73d748 feat: add compression support and update deployment workflow
add brotli and gzip compression support, update docker-compose and deployment script
2024-10-30 07:43:17 +08:00
wood chen
533737692d
Update readme.md 2024-10-30 00:08:43 +08:00
380d993b6d refactor(Dockerfile): standardize Dockerfile structure and remove unused platform argument 2024-10-29 23:14:57 +08:00
81e7b2d9d8 refactor: streamline Docker build process by merging prepare binaries and create Docker build context steps 2024-10-29 23:12:33 +08:00
7caeddb0e8 chore(workflow): Create Docker build context for amd64 and arm64 architectures 2024-10-29 23:10:33 +08:00
c82e9a1d3a chore(workflow, docker): ignore .yml files in build workflow, update Dockerfile for multi-platform support, and add docker-compose.yml
Add docker-compose.yml for local development and testing.
2024-10-29 23:09:03 +08:00
0719bce7aa chore(workflow): update actions and ignore md files in push event 2024-10-29 23:05:24 +08:00
96068e2dfe feat(proxy-go): Initialize project structure and dependencies
Add .gitignore, go.mod, and readme.md files to set up the project structure and dependencies.
2024-10-29 23:02:08 +08:00
6762c822ab first commit 2024-10-29 23:00:16 +08:00