Skip to content

Latest commit

 

History

History
 
 

discourse

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Discourse on Akash

This guide is intended to describe the process to run Discourse Multi-Tiered application on Akash Network.

About Akash

Akash Network, the world’s first decentralized and open-source cloud, accelerates deployment, scale, efficiency and price performance for high-growth industries like blockchain and machine learning/AI.

Akash means "open space" or "sky" in ancient Sanskrit.

https://akash.network/

Firsts steps on Akash

Read the docs: https://akash.network/docs

Setup your wallet: https://akash.network/docs/getting-started/token-and-wallets/

Step by step guides to Akash:

About Discourse

Discourse is the 100% open source discussion platform built for the next decade of the Internet. Use it as a mailing list, discussion forum, long-form chat room, and more!

https://www.discourse.org/

Discourse on Akash in a Nutshell

The provided SDL deploy a Multi-Tiered application with 4 services/containers:

Backend

  • PostgreSQL
  • Redis
  • Sidekiq discourse

Frontend

  • Discourse

All you need to run your own Discourse services in Akash Network is deploy the SDL: deploy.yml script on Mainnet using your preferred "Step by step guides to Akash" mentioned above.

Additionally this guide show how to using Akash Console:

Discourse on Akash Network

Note: the process is the same if you use https://akashdeploy.hns.siasky.net/ to deploy your SDL.

Security issues

Content Security Policy

Discourse need deploy over HTTPS otherwise could get a browser block for Content Security Policy issues this guide written by Tee Yee Yang show how to do that.

To get past this and test your deployment, change your browser settings and temporarily disable CSP, in Firefox based browsers the steps are:

  • Put about:config as URL and press enter
  • Confirm you know what are you doing
  • Search security.csp.enable and clic to disable
  • Test Discourse on Akash
  • Enable security.csp.enable policy

Set ALLOW_EMPTY_PASSWORD to NO in production environment

Follow the comments in SDL file to enable passwords

      - ALLOW_EMPTY_PASSWORD=yes
      - POSTGRESQL_USERNAME=akt_discourse
      - POSTGRESQL_DATABASE=akash_discourse
      ## Set if ALLOW_EMPTY_PASSWORD=no
      #- POSTGRESQL_PASSWORD=changeme 
      #- POSTGRESQL_POSTGRES_PASSWORD=changeme

Costs

The costs depends on capacity described in section profiles.compute in deploy.yml file.

With the default setting this deployment aprox. cost 6 AKT per month (someting like $14).

Disclaimer

Taken from Akash Console:

  • We strongly suggest you start with a new wallet and a small amount of AKT until we further stabilize the product.
  • We're not responsible for any loss or damages related to using the app.
  • The app has a high chance of containing bugs since it's in BETA, use at your own risk.