mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
add brotli and gzip compression support, update docker-compose and deployment script
17 lines
344 B
Go
17 lines
344 B
Go
package config
|
|
|
|
type Config struct {
|
|
MAP map[string]string `json:"MAP"`
|
|
Compression CompressionConfig `json:"Compression"`
|
|
}
|
|
|
|
type CompressionConfig struct {
|
|
Gzip CompressorConfig `json:"Gzip"`
|
|
Brotli CompressorConfig `json:"Brotli"`
|
|
}
|
|
|
|
type CompressorConfig struct {
|
|
Enabled bool `json:"Enabled"`
|
|
Level int `json:"Level"`
|
|
}
|