config.go 519 B

12345678910111213141516171819
  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. NodejsPath string `yaml:"nodejs_path"`
  13. EnableNetwork bool `yaml:"enable_network"`
  14. Proxy struct {
  15. Socks5 string `yaml:"socks5"`
  16. } `yaml:"proxy"`
  17. }