You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.8 KiB

4 years ago
  1. +++
  2. title = "Configuration Settings"
  3. description = "Toxic Swamp one-time configuration settings."
  4. noindex = true
  5. features = ["snippets", "code highlighter", "index blocking"]
  6. [security.csp.directives]
  7. scriptSrc = [
  8. "'sha512-ZcJCmjpwoDxVbrP6iOEsmJC7fC6I0nq6bSOjjbGkrbSE7mtb0647MoQa+Wbxa8fkTUqhUYkfVY/oduanSklU9g=='"
  9. ]
  10. [[copyright]]
  11. owner = "Josh Habdas"
  12. date = "2019"
  13. license = "agpl-3.0-or-later"
  14. +++
  15. <section class="js-toshow" style="display:none">
  16. {{< hackcss-button type="info" isghost="true" onclick="print()" >}}
  17. <svg viewBox="0 0 32 32" width="16" height="16" fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
  18. <path d="M7 25 L2 25 2 9 30 9 30 25 25 25 M7 19 L7 30 25 30 25 19 Z M25 9 L25 2 7 2 7 9 M22 14 L25 14" />
  19. </svg>
  20. {{< /hackcss-button >}}
  21. You may print this page. If you refresh you will lose your settings.
  22. </section>
  23. Add the following to your site config:
  24. <section class="js-tohide">
  25. {{% hackcss-card header="config.toml" %}}[Generate Config](../#config-generator) to view config settings.{{% /hackcss-card %}}
  26. </section>
  27. <section class="js-toshow" style="display:none">
  28. {{< hackcss-card header="config.toml" >}}
  29. {{< highlight toml "linenos=inline,linenostart=36" >}}
  30. [params.modules.toxic_swamp]
  31. enabled = true # Optional, set false to disable module
  32. address = "$address" # Required, public payout address
  33. {{< /highlight >}}
  34. {{< /hackcss-card >}}
  35. </section>
  36. <section class="js-showadvanced" style="display:none">
  37. <p>Additionally add the following below the <code>address</code> setting:</p>
  38. {{< hackcss-card header="config.toml" >}}
  39. {{< highlight toml "linenos=inline,linenostart=39" >}}
  40. proxies = ["proxy-name"] # Required, ordered list of custom proxy names
  41. {{< /highlight >}}
  42. {{< /hackcss-card >}}
  43. <p>And create <code>proxies.toml</code> in your site <code>data</code> directory:</p>
  44. {{< highlight sh >}}
  45. mkdir -p data/modules/toxic_swamp && \
  46. touch data/modules/toxic_swamp/proxies.toml
  47. {{< /highlight >}}
  48. <p>With the following file contents:</p>
  49. {{< hackcss-card header="data/modules/toxic_swamp/proxies.toml" >}}
  50. {{< highlight toml "linenos=inline" >}}
  51. ["proxy-name"]
  52. server = "$server" # Required, use ws://localhost:8181 for testing
  53. pool = "$pool" # Required, key for pool registered at the server
  54. password = "$poolpass" # Optional, password for pool you're mining to, if any
  55. {{< /highlight >}}
  56. {{< /hackcss-card >}}
  57. <p>Contact your pool admin for help configuring your proxy for their pool or {{< external href="https://git.habd.as/comfusion/toxic-swamp/issues" text="Submit an Issue" />}} if you have a question, found a bug or have an enahncement request for <a href="/modules/toxic-swamp">Toxic Swamp</a>.</p>
  58. </section>
  59. <section class="js-hideadvanced">
  60. <p>Then rebuild your site to start <a href="../#earning-rewards">Earning Rewards</a>.
  61. </section>