config.go 796 B

123456789101112131415161718192021222324
  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. PythonPipMirrorURL string `yaml:"python_pip_mirror_url"`
  14. NodejsPath string `yaml:"nodejs_path"`
  15. EnableNetwork bool `yaml:"enable_network"`
  16. AllowedSyscalls []int `yaml:"allowed_syscalls"`
  17. Proxy struct {
  18. Socks5 string `yaml:"socks5"`
  19. Https string `yaml:"https"`
  20. Http string `yaml:"http"`
  21. } `yaml:"proxy"`
  22. }