.env.example 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. SERVER_PORT=5002
  2. SERVER_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi
  3. GIN_MODE=release
  4. PLATFORM=local
  5. DIFY_INNER_API_KEY="QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1"
  6. DIFY_INNER_API_URL=http://127.0.0.1:5001
  7. PLUGIN_REMOTE_INSTALLING_ENABLED=true
  8. PLUGIN_REMOTE_INSTALLING_HOST=127.0.0.1
  9. PLUGIN_REMOTE_INSTALLING_PORT=5003
  10. # s3 credentials
  11. S3_USE_AWS_MANAGED_IAM=true
  12. S3_ENDPOINT=
  13. S3_BUCKET_NAME=
  14. AWS_ACCESS_KEY=
  15. AWS_SECRET_KEY=
  16. AWS_REGION=
  17. # tencent cos credentials
  18. TENCENT_COS_SECRET_KEY=
  19. TENCENT_COS_SECRET_ID=
  20. TENCENT_COS_REGION=
  21. # services storage
  22. PLUGIN_STORAGE_TYPE=local
  23. PLUGIN_STORAGE_OSS_BUCKET=
  24. PLUGIN_STORAGE_LOCAL_ROOT=./storage
  25. # where the plugin finally installed
  26. PLUGIN_INSTALLED_PATH=plugin
  27. # where the plugin finally running and working
  28. PLUGIN_WORKING_PATH=cwd
  29. # persistence storage
  30. PERSISTENCE_STORAGE_PATH=persistence
  31. PERSISTENCE_STORAGE_MAX_SIZE=104857600
  32. # plugin webhook
  33. PLUGIN_WEBHOOK_ENABLED=true
  34. # routine pool
  35. ROUTINE_POOL_SIZE=1024
  36. # redis
  37. REDIS_HOST=127.0.0.1
  38. REDIS_PORT=6379
  39. REDIS_PASSWORD=difyai123456
  40. DB_USERNAME=postgres
  41. DB_PASSWORD=difyai123456
  42. DB_HOST=localhost
  43. DB_PORT=5432
  44. DB_DATABASE=dify_plugin
  45. DIFY_INVOCATION_CONNECTION_IDLE_TIMEOUT=120
  46. MAX_PLUGIN_PACKAGE_SIZE=52428800
  47. # dify serverless connector
  48. DIFY_PLUGIN_SERVERLESS_CONNECTOR_URL=http://127.0.0.1:5004
  49. DIFY_PLUGIN_SERVERLESS_CONNECTOR_API_KEY=HeRFb6yrzAy5vUSlJWK2lUl36mpkaRycv4witbQpucXacgXg7G9a8gVL
  50. # python interpreter, if you are using local runtime, you should set this path to your python interpreter path
  51. # otherwise, it should be /usr/bin/python3
  52. # PYTHON_INTERPRETER_PATH=/usr/bin/python3
  53. # python environment init timeout, if the python environment init process is not finished within this time, it will be killed
  54. PYTHON_ENV_INIT_TIMEOUT=120
  55. # pprof enabled, for debugging
  56. PPROF_ENABLED=false
  57. # FORCE_VERIFYING_SIGNATURE, for security, you should set this to true, pls be sure you know what you are doing
  58. # if want to install plugin without verifying signature, set this to false
  59. FORCE_VERIFYING_SIGNATURE=true
  60. # proxy settings, example: HTTP_PROXY=http://host.docker.internal:7890
  61. HTTP_PROXY=
  62. HTTPS_PROXY=