-
Notifications
You must be signed in to change notification settings - Fork 22
/
.env.example
81 lines (65 loc) · 2.75 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#### enviroment variables for the mint
RUST_LOG=debug
# if set to 'dev' env variables from the .env file will be used
MINT_APP_ENV=dev
# connection string for the postgres database
MINT_DB_URL=postgres://postgres:[email protected]/moksha-mint
# Set the maximum number of connections that the pool should maintain (default 5) (optional)
MINT_DB_MAX_CONNECTIONS=5
# the private key of the mint
MINT_PRIVATE_KEY=superprivatesecretkey
# the derivation path for the mint (optional)
MINT_DERIVATION_PATH="/0/0/0/0"
# the host and port the mint will listen on int the format https://doc.rust-lang.org/std/net/enum.SocketAddr.html
# if the variable is not set the mint will listen on all interfaces on port 3338
MINT_HOST_PORT="[::]:3338"
# optional prefix for the api. If set the api will be served under the given prefix.
# This is useful if the mint is served behind a reverse proxy
# (optional)
#MINT_API_PREFIX=/api
# if set will serve the wallet from the given path
#MINT_SERVE_WALLET_PATH=./flutter/build/web
# mint info (optional)
MINT_INFO_NAME=moksha-mint
# If set to true the version of the mint crate will be displayed in the mint info
MINT_INFO_VERSION=true
MINT_INFO_DESCRIPTION="mint description"
MINT_INFO_DESCRIPTION_LONG="mint description long"
MINT_INFO_MOTD="some message of the day"
MINT_INFO_CONTACT_EMAIL="[email protected]"
MINT_INFO_CONTACT_TWITTER="@me"
MINT_INFO_CONTACT_NOSTR="npub123"
# fee configuration (optional) defaults to 1.0 / 4000
MINT_LIGHTNING_FEE_PERCENT=1.0
MINT_LIGHTNING_RESERVE_FEE_MIN=4000
# configure the lightning backend.
# currently supported backends are:
# - Lnbits
# - Alby
# - Strike
# - Lnd
# you are required to set the corresponding environment variables for the backend you want to use
MINT_LIGHTNING_BACKEND=Lnbits
MINT_LNBITS_URL=https://<yourLNbitsdomainname>.com
MINT_LNBITS_ADMIN_KEY=YOUR_ADMIN_KEY
#MINT_LIGHTNING_BACKEND=Alby
MINT_ALBY_API_KEY=YOUR_API_KEY
#MINT_LIGHTNING_BACKEND=Strike
MINT_STRIKE_API_KEY=YOUR_API_KEY
#MINT_LIGHTNING_BACKEND=Lnd
# absolute path to the lnd macaroon file
MINT_LND_MACAROON_PATH="/.../admin.macaroon"
# absolute path to the tls certificate
MINT_LND_TLS_CERT_PATH="/../tls.cert"
# the host and port of the lnd grpc api
MINT_LND_GRPC_HOST="https://localhost:10004"
# (optional) base64 encoded macaroon and tls certificate instead of the file paths
MINT_LND_MACAROON_BASE64="base64 encoded macaroon"
MINT_LND_TLS_CERT_BASE64="base64 encoded tls cert"
# (optional) onchain backend for the mint. Uses the same configuration as the lnd lightning backend
#MINT_BTC_ONCHAIN_BACKEND=Lnd
#MINT_BTC_ONCHAIN_BACKEND_MIN_AMOUNT=10000
#MINT_BTC_ONCHAIN_BACKEND_MAX_AMOUNT=1000000
#MINT_BTC_ONCHAIN_BACKEND_MIN_CONFIRMATIONS=1
# (optional) enable tracing with open telemetry
#MINT_TRACING_ENDPOINT="http://127.0.0.1:4318"