Add lnd env vars
This commit is contained in:
parent
3415b89c39
commit
bfee9ce183
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,9 @@ import (
|
|||
type (
|
||||
Config struct {
|
||||
ListenAddr string
|
||||
LndCertB64 string
|
||||
LndAddr string
|
||||
LndMacaroonHex string
|
||||
LogLevel string
|
||||
MatrixIdentityServer string
|
||||
MatrixWellKnownAddress string
|
||||
|
@ -17,6 +20,9 @@ type (
|
|||
func GetConfig() Config {
|
||||
return Config{
|
||||
ListenAddr: getEnv("LISTEN_ADDR", ":8090"),
|
||||
LndCertB64: getEnv("LND_CERT_B64", ""),
|
||||
LndAddr: getEnv("LND_ADDR", ""),
|
||||
LndMacaroonHex: getEnv("LND_MACAROON_HEX", ""),
|
||||
LogLevel: getEnv("LOG_LEVEL", "INFO"),
|
||||
MatrixIdentityServer: getEnv("MATRIX_IDENTITY_SERVER", ""),
|
||||
MatrixWellKnownAddress: getEnv("MATRIX_WELL_KNOWN_ADDRESS", ""),
|
||||
|
|
Loading…
Reference in a new issue