-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Now that you've set up Postgres, here's what you need to understand: https://fly.io/docs/postgres/getting-started/what-you-should-know/ | ||
Checking for existing attachments | ||
Registering attachment | ||
Creating database | ||
Creating user | ||
|
||
Postgres cluster moksha-mint-db is now attached to moksha-mint | ||
The following secret was added to moksha-mint: | ||
DATABASE_URL=postgres://moksha_mint:[email protected]:5432/moksha_mint?sslmode=disable | ||
Postgres cluster moksha-mint-db is now attached to moksha-mint | ||
Wrote config file fly.toml | ||
Validating /Users/steffen/projects/moksha/fly.toml | ||
Platform: machines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
# fly.toml app configuration file generated for moksha-mint on 2023-12-13T20:00:51+01:00 | ||
# fly.toml app configuration file generated for moksha-mint on 2023-12-14T15:52:30+01:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = "moksha-mint" | ||
primary_region = "ams" | ||
|
||
[build] | ||
[env] | ||
LIGHTNING_FEE_PERCENT = "0" | ||
LIGHTNING_RESERVE_FEE_MIN = "0" | ||
LND_GRPC_HOST = "https://mutinynet.moksha.cash:10009" | ||
LND_MACAROON_PATH = "/admin.macaroon" | ||
LND_TLS_CERT_PATH = "/tls.cert" | ||
MINT_DB_URL = "postgres://moksha_mint:[email protected]:5432/moksha_mint?sslmode=disable" | ||
MINT_HOST_PORT = "[::]:3338" | ||
MINT_INFO_DESCRIPTION = "fly.io mint" | ||
MINT_INFO_DESCRIPTION_LONG = "mint description long" | ||
MINT_INFO_MOTD = "some message of the day" | ||
MINT_INFO_NAME = "moksha-mint" | ||
MINT_INFO_VERSION = "true" | ||
MINT_LIGHTNING_BACKEND = "Lnd" | ||
MINT_PRIVATE_KEY = "changeme" | ||
SQLX_OFFLINE = "false" | ||
|
||
[http_service] | ||
internal_port = 3338 | ||
|
@@ -16,31 +31,19 @@ auto_start_machines = true | |
min_machines_running = 0 | ||
processes = ["app"] | ||
|
||
[[vm]] | ||
cpu_kind = "shared" | ||
cpus = 1 | ||
memory_mb = 1024 | ||
|
||
[env] | ||
MINT_APP_ENV = "prod" | ||
SQLX_OFFLINE = "false" | ||
MINT_HOST_PORT = "[::]:3338" | ||
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" | ||
local_path = "" | ||
secret_name = "LND_MACAROON" | ||
raw_value = "" | ||
|
||
[[files]] | ||
guest_path = "/tls.cert" | ||
local_path = "" | ||
secret_name = "LND_TLS_CERT" | ||
raw_value = "" | ||
|
||
[[vm]] | ||
cpu_kind = "shared" | ||
cpus = 1 | ||
memory_mb = 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[toolchain] | ||
channel = "1.74.1" | ||
components = ["clippy", "rustfmt"] |