1let ListenOn = < Inet: { interface: Text, port: Natural } | Unix: Text >
2in
3{
4 component = {
5 jid = "component.localhost",
6 secret = "secret"
7 },
8 server = {
9 host = "localhost",
10 port = 5347
11 },
12 sgx = "component2.localhost",
13 web = ListenOn.Inet { interface = "::1", port = env:PORT ? 8080 },
14 creds = {
15 account = "00000",
16 username = "dashboard user",
17 password = "dashboard password"
18 },
19 catapult = {
20 user = "",
21 token = "",
22 secret = "",
23 application_id = "",
24 domain = "",
25 sip_host = ""
26 },
27 web_register = {
28 to = "cheogram",
29 from = "jmp-register@localhost"
30 },
31 bandwidth_site = "",
32 bandwidth_peer = "",
33 braintree = {
34 environment = "sandbox",
35 merchant_id = "",
36 public_key = "",
37 private_key = "",
38 merchant_accounts = {
39 USD = "",
40 CAD = ""
41 }
42 },
43 xep0157 = [
44 { var = "support-addresses", value = "xmpp:+14169938000@cheogram.com", label = "Support" }
45 ],
46 notify_admin = "muc@example.com",
47 sip_host = "sip.jmp.chat",
48 plans = [
49 {
50 name = "plan_name",
51 currency = < CAD | USD >.USD,
52 monthly_price = 29900,
53 minutes = <
54 unlimited |
55 limited: { included: Natural, price: Natural }
56 >.limited { included = 120, price = 87 },
57 messages = <
58 unlimited |
59 limited: { included: Natural, price: Natural }
60 >.unlimited
61 }
62 ],
63 electrum = {
64 rpc_uri = "",
65 rpc_username = "",
66 rpc_password = ""
67 },
68 oxr_app_id = "",
69 activation_amount = 15,
70 credit_card_url = \(jid: Text) -> \(customer_id: Text) ->
71 "https://pay.jmp.chat/${jid}/credit_cards?customer_id=${customer_id}",
72 electrum_notify_url = \(address: Text) -> \(customer_id: Text) ->
73 "https://pay.jmp.chat/electrum_notify?address=${address}&customer_id=${customer_id}",
74 adr = "",
75 interac = "",
76 payable = "",
77 notify_from = "+15551234567@example.net",
78 admins = ["test\\40example.com@example.net"],
79 upstream_domain = "example.net"
80}