Skip to content

Commit

Permalink
chore: set secrets for fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Dec 14, 2023
1 parent 0280563 commit 8c9b7bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 13 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,25 @@ cpus = 1
memory_mb = 1024

[env]
SQLX_OFFLINE = "false"
MINT_APP_ENV = "prod"
SQLX_OFFLINE = "false"
MINT_HOST_PORT = "[::]:3338"
#MINT_INFO_CONTACT = "[["email", "[email protected]"]]"
MINT_INFO_NAME = "moksha-mint"
MINT_INFO_VERSION = "true"
MINT_INFO_DESCRIPTION = "fly.io mint"
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"
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

0 comments on commit 8c9b7bd

Please sign in to comment.