config.go 366 B

12345678910111213141516
  1. package app
  2. type Config struct {
  3. DifyPluginHost string `envconfig:"DIFY_PLUGIN_HOST"`
  4. DifyPluginPort int16 `envconfig:"DIFY_PLUGIN_PORT"`
  5. DifyPluginKey string `envconfig:"DIFY_PLUGIN_KEY"`
  6. StoragePath string `envconfig:"STORAGE_PATH"`
  7. Platform string `envconfig:"PLATFORM"`
  8. }
  9. const (
  10. PLATFORM_LOCAL = "local"
  11. PLATFORM_AWS_LAMBDA = "aws_lambda"
  12. )