diff --git a/fly.toml b/fly.toml index 921ed96b..1208503d 100644 --- a/fly.toml +++ b/fly.toml @@ -22,10 +22,9 @@ cpus = 1 memory_mb = 1024 [env] -SQLX_OFFLINE = "false" MINT_APP_ENV = "prod" +SQLX_OFFLINE = "false" MINT_HOST_PORT = "[::]:3338" -#MINT_INFO_CONTACT = "[["email", "contact@me.com"]]" MINT_INFO_NAME = "moksha-mint" MINT_INFO_VERSION = "true" MINT_INFO_DESCRIPTION = "fly.io mint" @@ -33,3 +32,15 @@ MINT_INFO_DESCRIPTION_LONG = "mint description long" MINT_INFO_MOTD = "some message of the day" LIGHTNING_FEE_PERCENT = "0" LIGHTNING_RESERVE_FEE_MIN = "0" +MINT_LIGHTNING_BACKEND = "Lnd" +LND_MACAROON_PATH = "/admin.macaroon" +LND_TLS_CERT_PATH = "/tls.cert" +LND_GRPC_HOST = "https://mutinynet.moksha.cash:10009" + +[[files]] +guest_path = "/admin.macaroon" +secret_name = "LND_MACAROON" + +[[files]] +guest_path = "/tls.cert" +secret_name = "LND_TLS_CERT" diff --git a/justfile b/justfile index fe7238a9..442cf9f3 100644 --- a/justfile +++ b/justfile @@ -123,5 +123,10 @@ db-create: cargo sqlx database create --database-url postgres://postgres:postgres@localhost/moksha-mint +fly-db-proxy: + flyctl proxy 6542:5432 -a moksha-mint-db +db-secrets: + flyctl secrets set LND_MACAROON="$(cat data/mutinynet/admin.macaroon)" + flyctl secrets set LND_TLS_CERT="$(cat data/mutinynet/tls.cert)"