The recommended method is AWS CloudFormation, as described in README.
Or download Matreon.Template, upload it on the CloudFormation stack creation page.
In both cases, fill out the form and then follow instructions in README.
You can also deploy programatically.
You need to run c-lightning and Lightning Charge somewhere.
Create a new Heroku app app-name
and add the Sendgrid Add-On.
Clone this repo and:
heroku git:remote -a app-name
heroku config:set HEROKU=true
heroku config:set HOSTNAME=https://app-name.herokuapp.com # Must be HTTPS
heroku config:set LIGHTNING_CHARGE_URL=https://charge.example.com
heroku config:set LIGHTNING_CHARGE_API_TOKEN=...
heroku config:set FROM_EMAIL='"My Matreon" <[email protected]>'
heroku config:add [email protected]
git push heroku
heroku run db:migrate
To send out monthly emails and monitor payments, install the scheduler
addon:
heroku addons:create scheduler:standard
heroku addons:open scheduler
Click "Add a new job", enter rake invoices:process
and press Save
. Set frequency to hourly to retry in case of failure.
It's free to use your own domain with Heroku. SSL for your own domain is also easy to setup, but not free.
In order to provide a podcast feed for your supporters, you need to configure some channel metadata and provide a URL of an existing podcast RSS feed. Uploading episodes directly isn't supported yet, see #25.
heroku config:add PODCAST=1
heroku config:add PODCAST_TITLE='Sjorsnado Podcast'
heroku config:add PODCAST_IMAGE=https://example.com/podcast.png
heroku config:add PODCAST_URL=https://example.com/podcast.rss
In Heroku click "Ad a new job", enter rake podcast:fetch
and press Save
. Suggested frequency is hourly.
Coming soon, hopefully: Ubuntu on Orange Pi and Nanopi.
In addition to the sections below, I suggest studying the AWS template and the various scripts in /vendor.
If you have Lightning Charge installed elsewhere, you can skip Bitcoin Core, C-Lightning and Lightning Charge. You'll need to put LIGHTNING_CHARGE_URL=
into the Rails app.