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 web_register = {
23 to = "cheogram",
24 from = "jmp-register@localhost"
25 },
26 bandwidth_site = "",
27 bandwidth_peer = "",
28 braintree = {
29 environment = "sandbox",
30 merchant_id = "",
31 public_key = "",
32 private_key = "",
33 merchant_accounts = {
34 USD = "",
35 CAD = ""
36 }
37 },
38 xep0157 = [
39 { var = "support-addresses", value = "xmpp:+14169938000@cheogram.com", label = "Support" }
40 ],
41 sip = {
42 realm = "",
43 app = ""
44 },
45 notify_admin = "muc@example.com",
46 sip_host = "sip.jmp.chat",
47 plans = [
48 {
49 name = "plan_name",
50 currency = < CAD | USD >.USD,
51 monthly_price = 29900,
52 minutes = <
53 unlimited |
54 limited: { included: Natural, price: Natural }
55 >.limited { included = 120, price = 87 },
56 messages = <
57 unlimited |
58 limited: { included: Natural, price: Natural }
59 >.unlimited
60 }
61 ],
62 sims = {
63 sim = [
64 { mapKey = <CAD|USD>.CAD, mapValue = { price = 1, plan = "$1 / GB + $1 / year" } }
65 ],
66 esim = [
67 { mapKey = <CAD|USD>.CAD, mapValue = { price = 1, plan = "$1 / GB + $1 / year" } }
68 ]
69 },
70 electrum = {
71 rpc_uri = "",
72 rpc_username = "",
73 rpc_password = ""
74 },
75 oxr_app_id = "",
76 activation_amount = 15,
77 activation_amount_accept = 15,
78 credit_card_url = \(jid: Text) -> \(customer_id: Text) ->
79 "https://pay.jmp.chat/${jid}/credit_cards?customer_id=${customer_id}",
80 electrum_notify_url = \(address: Text) -> \(customer_id: Text) ->
81 "https://pay.jmp.chat/electrum_notify?address=${address}&customer_id=${customer_id}",
82 adr = "",
83 interac = "",
84 payable = "",
85 notify_from = "+15551234567@example.net",
86 admins = ["test\\40example.com@example.net"],
87 direct_targets = toMap {
88 `+15551234567` = "support@example.com"
89 },
90 direct_sources = toMap {
91 `support@example.com` = "+15551234567"
92 },
93 keep_area_codes = ["555"],
94 keep_area_codes_in = { account = "", site_id = "", sip_peer_id = "" },
95 snikket_hosting_api = "",
96 onboarding_domain = "",
97 rev_ai_token = "",
98 upstream_domain = "example.net",
99 approved_domains = toMap { `example.com` = Some "customer_id" },
100 parented_domains = toMap { `example.com` = { customer_id = "customer_id", plan_name = "usd" } },
101 keepgo = Some { api_key = "", access_token = "" },
102 simpleswap_api_key = "",
103 reachability_senders = [ "+14445556666" ],
104 support_link = \(customer_jid: Text) ->
105 "http://localhost:3002/app/accounts/2/contacts/custom_attributes/jid/${customer_jid}"
106}