mirror of https://github.com/synctv-org/synctv
Feat: AllowProxyToLocal config
parent
f7facc4bbf
commit
2fb4767ffb
@ -1,13 +1,15 @@
|
||||
package conf
|
||||
|
||||
type ProxyConfig struct {
|
||||
MovieProxy bool `yaml:"movie_proxy" env:"PROXY_MOVIE"`
|
||||
LiveProxy bool `yaml:"live_proxy" env:"PROXY_LIVE"`
|
||||
MovieProxy bool `yaml:"movie_proxy" env:"PROXY_MOVIE"`
|
||||
LiveProxy bool `yaml:"live_proxy" env:"PROXY_LIVE"`
|
||||
AllowProxyToLocal bool `yaml:"allow_proxy_to_local" env:"PROXY_ALLOW_TO_LOCAL"`
|
||||
}
|
||||
|
||||
func DefaultProxyConfig() ProxyConfig {
|
||||
return ProxyConfig{
|
||||
MovieProxy: true,
|
||||
LiveProxy: true,
|
||||
MovieProxy: true,
|
||||
LiveProxy: true,
|
||||
AllowProxyToLocal: false,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue