1
0

_upgrade_warning.html.erb 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <% if @twitter_agent %>
  2. <div class="alert alert-danger" role="alert">
  3. <p>
  4. <b>Warning!</b> You need to update your Huginn configuration, so your agents continue to work with the new OAuth services.
  5. </p>
  6. <br/>
  7. <% if @twitter_agent %>
  8. <p>
  9. To complete the migration of your <b>Twitter</b> agents you need to update your .env file and add the following two lines:
  10. <pre>
  11. TWITTER_OAUTH_KEY=<%= @twitter_oauth_key %>
  12. TWITTER_OAUTH_SECRET=<%= @twitter_oauth_secret %>
  13. </pre>
  14. To authenticate new accounts with your twitter OAuth application you need to log in the to <a href="https://apps.twitter.com/" target="_blank">twitter application management page</a> and set the callback URL of your application to "http<%= ENV['FORCE_SSL'] == 'true' ? 's' : '' %>://<%= ENV['DOMAIN'] %>/auth/twitter/callback".
  15. </p>
  16. <% end %>
  17. </div>
  18. <% end -%>
  19. <% if @outdated_google_cal_agents && @outdated_google_cal_agents.length > 0 %>
  20. <dir class="container">
  21. <div class="alert alert-danger" role="alert">
  22. <p>
  23. <b>Warning!</b> Your <b>Google Calendar Publish Agents</b> are using an outdated version of Google Auth. You need to update the agent configuration, possibly with a new keyfile from Google for it to continue to work.
  24. <br/>
  25. PKCS12 key files (`.p12`) are no longer supported. Instead use RSA private keys. Edit the agents to see the updated instructions. The `google.key_secret` option is no longer needed, please remove it.
  26. <br/>
  27. The format of parameters in events passed to the agent have also changed. Parameters now are expected in underscore_case instead of camelCase (to match Ruby convention). Please update upstream agents that send events to the calendar agent.
  28. </p>
  29. <p>
  30. Outdated agents:
  31. <ul>
  32. <% @outdated_google_cal_agents.each do |agent| -%>
  33. <li><%= link_to(agent.name, edit_agent_path(agent)) %></li>
  34. <% end -%>
  35. </ul>
  36. </p>
  37. </div>
  38. </dir>
  39. <% end -%>
  40. <% if @outdated_docker_registry %>
  41. <dir class="container">
  42. <div class="alert alert-danger" role="alert">
  43. <p>
  44. <b>Warning!</b> This message is informing you that the source from which the Huginn Docker image is obtained needs to be updated.
  45. </p>
  46. <br/>
  47. <p>
  48. Docker Hub is discontinuing team accounts, and as a result, the Huginn Docker images will now be hosted on GitHub Container Registry (GHCR). Therefore, you need to update your configuration to the new registry.
  49. <p>
  50. <ul>
  51. <li><code>huginn/huginn</code> is now <code>ghcr.io/huginn/huginn</code></li>
  52. <li><code>huginn/huginn-single-process</code> is now <code>ghcr.io/huginn/huginn-single-process</code></li>
  53. </ul>
  54. </p>
  55. </p>
  56. </div>
  57. </dir>
  58. <% end -%>