1
0

.env.example 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # ==== Required configuration settings for Huginn ====
  2. # Replace the following with the output from "rake secret"
  3. APP_SECRET_TOKEN=REPLACE_ME_NOW!
  4. # This is the domain where your Huginn instance will be running. The default should work
  5. # for development, but it needs to be changed to your Huginn domain when you deploy to a
  6. # production environment (e.g., yourdomain.com, possibly including a port).
  7. DOMAIN=localhost:3000
  8. # Optionally set an asset host
  9. # ASSET_HOST=http://assets.example.com
  10. ############################
  11. # Database Setup #
  12. ############################
  13. DATABASE_ADAPTER=mysql2
  14. DATABASE_ENCODING=utf8
  15. DATABASE_RECONNECT=true
  16. DATABASE_NAME=huginn_development
  17. DATABASE_POOL=5
  18. DATABASE_USERNAME=root
  19. DATABASE_PASSWORD=""
  20. #DATABASE_HOST=your-domain-here.com
  21. #DATABASE_PORT=3306
  22. #DATABASE_SOCKET=/tmp/mysql.sock
  23. # MySQL only: If you are running a MySQL server >=5.5.3, you should
  24. # set DATABASE_ENCODING to utf8mb4 instead of utf8 so that the
  25. # database can hold 4-byte UTF-8 characters like emoji.
  26. #DATABASE_ENCODING=utf8mb4
  27. # ==== Additional required production settings ====
  28. # Configure Rails environment. This should only be needed in production and may cause errors in development.
  29. # RAILS_ENV=production
  30. # Should Rails force all requests to use SSL?
  31. FORCE_SSL=false
  32. ############################
  33. # Allowing Signups #
  34. ############################
  35. # This invitation code will be required for users to signup with your Huginn installation.
  36. # You can see its use in user.rb. PLEASE CHANGE THIS!
  37. INVITATION_CODE=try-huginn
  38. #############################
  39. # Email Configuration #
  40. #############################
  41. # Outgoing email settings. To use Gmail or Google Apps, put your Google Apps domain or gmail.com
  42. # as the SMTP_DOMAIN and your Gmail username and password as the SMTP_USER_NAME and SMTP_PASSWORD.
  43. #
  44. # PLEASE NOTE: In order to enable emails locally (e.g., when not in the production Rails environment),
  45. # you must also change config.action_mailer.perform_deliveries in config/environments/development.rb.
  46. SMTP_DOMAIN=your-domain-here.com
  47. SMTP_USER_NAME=you@gmail.com
  48. SMTP_PASSWORD=somepassword
  49. SMTP_SERVER=smtp.gmail.com
  50. SMTP_PORT=587
  51. SMTP_AUTHENTICATION=plain
  52. SMTP_ENABLE_STARTTLS_AUTO=true
  53. # The address from which system emails will appear to be sent.
  54. EMAIL_FROM_ADDRESS=from_address@gmail.com
  55. ###########################
  56. # Agent Logging #
  57. ###########################
  58. # Number of lines of log messages to keep per Agent
  59. AGENT_LOG_LENGTH=200
  60. ########################################################################################################
  61. # OAuth Configuration #
  62. # More information at the wiki: https://github.com/cantino/huginn/wiki/Configuring-OAuth-applications #
  63. ########################################################################################################
  64. TWITTER_OAUTH_KEY=
  65. TWITTER_OAUTH_SECRET=
  66. THIRTY_SEVEN_SIGNALS_OAUTH_KEY=
  67. THIRTY_SEVEN_SIGNALS_OAUTH_SECRET=
  68. GITHUB_OAUTH_KEY=
  69. GITHUB_OAUTH_SECRET=
  70. #############################
  71. # AWS and Mechanical Turk #
  72. #############################
  73. # AWS Credentials for MTurk
  74. AWS_ACCESS_KEY_ID="your aws access key id"
  75. AWS_ACCESS_KEY="your aws access key"
  76. # Set AWS_SANDBOX to true if you're developing Huginn code.
  77. AWS_SANDBOX=false
  78. ########################
  79. # Various Settings #
  80. ########################
  81. # Specify the HTTP backend library for Faraday, commonly used by
  82. # WebsiteAgent, RssAgent and PostAgent. You can change this depending
  83. # on the performance and stability you need for your service. Any
  84. # choice other than "typhoeus", "net_http", or "em_http" should
  85. # require you to bundle a corresponding gem via Gemfile.
  86. FARADAY_HTTP_BACKEND=typhoeus
  87. # Specify the default User-Agent header value for HTTP requests made
  88. # by Agents that allow overriding the User-Agent header value.
  89. DEFAULT_HTTP_USER_AGENT="Huginn - https://github.com/cantino/huginn"
  90. # Allow JSONPath eval expresions. i.e., $..price[?(@ < 20)]
  91. # You should not allow this on a shared Huginn box because it is not secure.
  92. ALLOW_JSONPATH_EVAL=false
  93. # Enable this setting to allow insecure Agents like the ShellCommandAgent. Only do this
  94. # when you trust everyone using your Huginn installation.
  95. ENABLE_INSECURE_AGENTS=false
  96. # Enable this setting to allow second precision schedule in
  97. # SchedulerAgent. By default, the use of the "second" field is
  98. # restricted so that any value other than a single zero (which means
  99. # "on the minute") is disallowed to prevent abuse of service.
  100. ENABLE_SECOND_PRECISION_SCHEDULE=false
  101. # Use Graphviz for generating diagrams instead of using Google Chart
  102. # Tools. Specify a dot(1) command path built with SVG support
  103. # enabled.
  104. #USE_GRAPHVIZ_DOT=dot
  105. # Timezone. Use `rake time:zones:local` or `rake time:zones:all` to get your zone name
  106. TIMEZONE="Pacific Time (US & Canada)"
  107. # Number of failed jobs to keep in the database
  108. FAILED_JOBS_TO_KEEP=100