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 web_root = "https://example.com",
15 ogm_path = "/var/www/media.example.com",
16 ogm_web_root = "https://media.example.com",
17 creds = {
18 account = "00000",
19 username = "dashboard user",
20 password = "dashboard password"
21 },
22 catapult = {
23 user = "",
24 token = "",
25 secret = "",
26 application_id = "",
27 domain = "",
28 sip_host = ""
29 },
30 web_register = {
31 to = "cheogram",
32 from = "jmp-register@localhost"
33 },
34 bandwidth_site = "",
35 bandwidth_peer = "",
36 braintree = {
37 environment = "sandbox",
38 merchant_id = "",
39 public_key = "",
40 private_key = "",
41 merchant_accounts = {
42 USD = "",
43 CAD = ""
44 }
45 },
46 xep0157 = [
47 { var = "support-addresses", value = "xmpp:+14169938000@cheogram.com", label = "Support" }
48 ],
49 sip = {
50 realm = "",
51 app = ""
52 },
53 notify_admin = "muc@example.com",
54 sip_host = "sip.jmp.chat",
55 plans = [
56 {
57 name = "plan_name",
58 currency = < CAD | USD >.USD,
59 monthly_price = 29900,
60 minutes = <
61 unlimited |
62 limited: { included: Natural, price: Natural }
63 >.limited { included = 120, price = 87 },
64 messages = <
65 unlimited |
66 limited: { included: Natural, price: Natural }
67 >.unlimited
68 }
69 ],
70 electrum = {
71 rpc_uri = "",
72 rpc_username = "",
73 rpc_password = ""
74 },
75 oxr_app_id = "",
76 activation_amount = 15,
77 credit_card_url = \(jid: Text) -> \(customer_id: Text) ->
78 "https://pay.jmp.chat/${jid}/credit_cards?customer_id=${customer_id}",
79 electrum_notify_url = \(address: Text) -> \(customer_id: Text) ->
80 "https://pay.jmp.chat/electrum_notify?address=${address}&customer_id=${customer_id}",
81 adr = "",
82 interac = "",
83 payable = "",
84 notify_from = "+15551234567@example.net",
85 admins = ["test\\40example.com@example.net"],
86 upstream_domain = "example.net",
87 approved_domains = toMap { `example.com` = Some "customer_id" }
88}