mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-04 12:57:45 +00:00
96 lines
3.9 KiB
Plaintext
96 lines
3.9 KiB
Plaintext
[listener]
|
|
host = 0.0.0.0
|
|
port = 8080
|
|
; the built webapp in the image, read as the export source
|
|
static_dir = /srv/web
|
|
; split deployment: Caddy serves the exported folder; this service is the API and webhooks only.
|
|
; Set to on for an all-in-one deployment where this service serves the webapp itself.
|
|
serve_webapp = off
|
|
; the webapp is written here at boot with the publishable key injected; compose bind-mounts it to a
|
|
; host path Caddy serves. Unset it when serve_webapp = on.
|
|
webapp_export_dir = /srv/webapp
|
|
; the names site (simplex.domains): its build and the folder it is exported to, which compose
|
|
; bind-mounts to ./names for Caddy. The image does not build the names site yet, so set both once a
|
|
; names build is mounted into the container at /srv/names.
|
|
;names_static_dir = /srv/names
|
|
;names_export_dir = /srv/names-export
|
|
; on because Caddy proxies /api and /webhooks to this service; without it the rate limiter keys on
|
|
; Caddy's address and shares one bucket across all callers
|
|
trust_forwarded_for = on
|
|
|
|
[btcpay]
|
|
host = https://btcpay.example.org
|
|
api_key = replace-me
|
|
store_id = replace-me
|
|
webhook_secret = replace-me
|
|
expiry_minutes = 60
|
|
speed_policy = MediumSpeed
|
|
payment_tolerance = 0.5
|
|
|
|
; optional; omit the whole [stripe] section to disable card payments
|
|
[stripe]
|
|
; restricted key (rk_): Payment Intents write + Charges read — never a full secret key (sk_)
|
|
secret_key = rk_test_replace-me
|
|
publishable_key = pk_test_replace-me
|
|
; the signing secret of the /webhooks/stripe endpoint configured in the Dashboard
|
|
webhook_secret = whsec_replace-me
|
|
; minutes the service holds an unpaid card invoice open before it expires it; 1-1440
|
|
session_minutes = 60
|
|
|
|
[poll]
|
|
waiting_seconds = 3
|
|
idle_seconds = 60
|
|
|
|
; index is the one clients verify against; private_key is from `simplex-chat badge keygen`.
|
|
; To rotate, change both together, once clients trust the new index.
|
|
[issuer]
|
|
index = 1
|
|
private_key = replace-me
|
|
|
|
; Optional. When present, the service creates and manages one group on its first
|
|
; start without --run-cli, and logs its join link once, on the start that creates it.
|
|
; The link is a bearer secret that stays valid, so keep that log private. The first
|
|
; member to join is promoted to owner, so join right away.
|
|
; Moderators can /issue and /bulk codes; admins and owners can also /revoke.
|
|
; display_name must be a name the chat core accepts unchanged: one it would spell
|
|
; differently stops the whole service, payments included, from starting.
|
|
;[group]
|
|
;display_name = SimpleX Badges
|
|
;description = Welcome to the badges group
|
|
|
|
; the names store: omit [names] and [chain] together to turn it off.
|
|
;[names]
|
|
; testing until the .simplex TLD is deployed
|
|
;tld = testing
|
|
; the paid years of a name; at least 2, the controller's minimum
|
|
;years = 2
|
|
; a name's term starts here; the days until then are free
|
|
;term_start = 2027-01-01T00:00:00Z
|
|
; how far an order's duration may be from the one the service computes
|
|
;term_slack_seconds = 3600
|
|
; a commitment with less than this left before its reveal deadline is not reused
|
|
;reveal_margin_seconds = 900
|
|
; how many times one order may move to another name
|
|
;max_order_moves = 3
|
|
;
|
|
; the chain the names are registered on. rpc_url can carry a provider's API key and service_key
|
|
; pays for every commit and register: keep both secret. Neither is ever logged.
|
|
;[chain]
|
|
; the reth node; egress.sh allows it
|
|
;rpc_url = http://127.0.0.1:8545
|
|
; 1 for Ethereum mainnet
|
|
;chain_id = 1
|
|
;controller = 0x...
|
|
;sponsor = 0x...
|
|
;base_registrar = 0x...
|
|
;resolver = 0x...
|
|
; 0x and 64 hex digits: the registrar key the service sends transactions with; create, fund and
|
|
; rotate it as apps/simplex-store-service/README.md, "The gas key", says
|
|
;service_key = 0x...
|
|
; blocks after a register's receipt before a name counts as registered
|
|
;confirmations = 3
|
|
; the most gas any one transaction may use
|
|
;gas_limit_cap = 8000000
|
|
; the most wei per gas any transaction may pay (100 gwei); a transaction that needs more waits
|
|
;max_fee_per_gas = 100000000000
|