config.go 649 B

12345678910111213141516171819202122
  1. package types
  2. type DifySandboxGlobalConfigurations struct {
  3. App struct {
  4. Port int `yaml:"port"`
  5. Debug bool `yaml:"debug"`
  6. Key string `yaml:"key"`
  7. } `yaml:"app"`
  8. MaxWorkers int `yaml:"max_workers"`
  9. MaxRequests int `yaml:"max_requests"`
  10. WorkerTimeout int `yaml:"worker_timeout"`
  11. PythonPath string `yaml:"python_path"`
  12. PythonLibPaths []string `yaml:"python_lib_path"`
  13. NodejsPath string `yaml:"nodejs_path"`
  14. EnableNetwork bool `yaml:"enable_network"`
  15. Proxy struct {
  16. Socks5 string `yaml:"socks5"`
  17. Https string `yaml:"https"`
  18. Http string `yaml:"http"`
  19. } `yaml:"proxy"`
  20. }