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