Compare commits

...

3 Commits

Author SHA1 Message Date
bumi a87eb60051
Add Heroku deploy button 2020-10-26 17:44:44 +01:00
bumi 3390971f84 Make heroku deployment easier 2020-10-26 17:35:38 +01:00
bumi e98a06f22f Cleanup 2020-10-26 17:19:02 +01:00
4 changed files with 36 additions and 2 deletions

View File

@ -85,6 +85,15 @@ All environment variables must be prefixed by `LNME_` use `_` instead of `-`
### Deployment
It is the easiest to run LnMe on the same node as LND. But you can run it anywhere as long as your LND node is accessible.
#### Heroku
One click deployment with Heroku:
[![Deploy on Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/bumi/lnme)
#### Notes
To run LnMe as systemd service have a look at the [systemd service example config](https://github.com/bumi/lnme/blob/master/examples/lnme.service)
I am running LnMe behind a reverse proxy using [caddy](https://caddyserver.com/) which comes with [fully-managed HTTPS](https://caddyserver.com/docs/quick-starts/https) via [letsencrypt](https://letsencrypt.org/).

26
app.json Normal file
View File

@ -0,0 +1,26 @@
{
"name": "lnme",
"description": "LnMe - your friendly ⚡ payment page",
"repository": "https://github.com/bumi/lnme",
"logo": "https://bitcoin.org/img/icons/logotop.svg",
"keywords": ["payments", "lightning", "bitcoin"],
"env": {
"LNME_LND_ADDRESS": {
"description": "LND Address (e.g. 42.42.21.21:10009)",
"value": ""
},
"LNME_LND_MACAROON": {
"description": "LND macaroon as HEX",
"value": ""
},
"LNME_LND_CERT": {
"description": "LND TLS cert as HEX",
"value": ""
}
},
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-go"
}
]
}

2
go.mod
View File

@ -1,3 +1,4 @@
// +heroku goVersion 1.15
module github.com/bumi/lnme
go 1.15
@ -8,7 +9,6 @@ require (
github.com/knadh/koanf v0.14.0
github.com/labstack/echo/v4 v4.1.17
github.com/lightningnetwork/lnd v0.11.1-beta
github.com/paked/configure v0.0.0-20190218140148-28f9c3f21a44
google.golang.org/grpc v1.33.0
gopkg.in/macaroon.v2 v2.1.0
)

1
go.sum
View File

@ -207,7 +207,6 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/paked/configure v0.0.0-20190218140148-28f9c3f21a44/go.mod h1:y9MA8YrqgIDBMhU+Dgzu5okImVGccMdjHnWv6md5rfs=
github.com/pelletier/go-toml v1.7.0 h1:7utD74fnzVc/cpcyy8sjrlFr5vYpypUixARcHIMIGuI=
github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=