PageRenderTime 24ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/app/views/ac/internal/production_doc.scala.html

https://bitbucket.org/awei/ac-play-java
HTML | 44 lines | 39 code | 5 blank | 0 comment | 0 complexity | 88a0abeac04a240a1eaf8f43ee467a66 MD5 | raw file
Possible License(s): Apache-2.0
  1. @import com.atlassian.connect.play.java.Constants
  2. @ac.internal.page("production") {
  3. } {
  4. <h2>Preparing for production</h2>
  5. <p>
  6. Here are a few steps you should go through to configure you add-on and your environment before deploying it in
  7. production.
  8. </p>
  9. <h3>Set your add-on key (and name)</h3>
  10. <p>
  11. By default the module defines an add-on key for you when in development. If you haven't done so, set your add-on
  12. key (and name) in the <code>application.conf</code> file:
  13. <dl>
  14. <dt><code>@Constants.AC_PLUGIN_KEY</code></dt>
  15. <dd>your add-on key, which is used internally as a key by Atlassian Connect.</dd>
  16. <dt><code>@Constants.AC_PLUGIN_NAME</code></dt>
  17. <dd>your add-on name, which is used to display the name of you add-on to end users.</dd>
  18. </dl>
  19. </p>
  20. <h3>Set your base URL</h3>
  21. <p>
  22. By default the base URL is computed by the framework. When deploying to a production instance you should define
  23. the <code>BASE_URL</code> environment variable which will then be used as the base URL for your add-on.
  24. </p>
  25. <h3>Set your RSA keys</h3>
  26. <p>
  27. By default (in dev) the module generates a key pair to use for signing OAuth request when communicating with the
  28. host application. Those key files must NOT be used in production.
  29. </p>
  30. <p>
  31. Instead you should define them as environment variables on your production system:
  32. <dl>
  33. <dt><code>OAUTH_LOCAL_PUBLIC_KEY</code></dt>
  34. <dd>is your public key</dd>
  35. <dt><code>OAUTH_LOCAL_PRIVATE_KEY</code></dt>
  36. <dd>is your private key</dd>
  37. </dl>
  38. </p>
  39. }