.env.example 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. # aws credentials
  11. AWS_ACCESS_KEY=
  12. AWS_SECRET_KEY=
  13. AWS_REGION=
  14. # services storage
  15. PLUGIN_STORAGE_TYPE=local
  16. PLUGIN_STORAGE_OSS_BUCKET=
  17. PLUGIN_STORAGE_LOCAL_ROOT=./storage
  18. # where the plugin finally installed
  19. PLUGIN_INSTALLED_PATH=plugin
  20. # where the plugin finally running and working
  21. PLUGIN_WORKING_PATH=cwd
  22. # persistence storage
  23. PERSISTENCE_STORAGE_PATH=persistence
  24. PERSISTENCE_STORAGE_MAX_SIZE=104857600
  25. # plugin webhook
  26. PLUGIN_WEBHOOK_ENABLED=true
  27. # routine pool
  28. ROUTINE_POOL_SIZE=1024
  29. # redis
  30. REDIS_HOST=127.0.0.1
  31. REDIS_PORT=6379
  32. REDIS_PASSWORD=difyai123456
  33. DB_USERNAME=postgres
  34. DB_PASSWORD=difyai123456
  35. DB_HOST=localhost
  36. DB_PORT=5432
  37. DB_DATABASE=dify_plugin
  38. DIFY_INVOCATION_CONNECTION_IDLE_TIMEOUT=120
  39. MAX_PLUGIN_PACKAGE_SIZE=52428800
  40. # dify serverless connector
  41. DIFY_PLUGIN_SERVERLESS_CONNECTOR_URL=http://127.0.0.1:5004
  42. DIFY_PLUGIN_SERVERLESS_CONNECTOR_API_KEY=HeRFb6yrzAy5vUSlJWK2lUl36mpkaRycv4witbQpucXacgXg7G9a8gVL
  43. # python interpreter, if you are using local runtime, you should set this path to your python interpreter path
  44. # otherwise, it should be /usr/bin/python3
  45. PYTHON_INTERPRETER_PATH=/Users/yeuoly/miniconda3/envs/dify-plugin-sdk/bin/python
  46. # python environment init timeout, if the python environment init process is not finished within this time, it will be killed
  47. PYTHON_ENV_INIT_TIMEOUT=120
  48. # pprof enabled, for debugging
  49. PPROF_ENABLED=false
  50. # FORCE_VERIFYING_SIGNATURE, for security, you should set this to true, pls be sure you know what you are doing
  51. # if want to install plugin without verifying signature, set this to false
  52. FORCE_VERIFYING_SIGNATURE=true
  53. # proxy settings, example: HTTP_PROXY=http://host.docker.internal:7890
  54. HTTP_PROXY=
  55. HTTPS_PROXY=