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 sgx_creds = [
18 { mapKey = "component-other.localhost", mapValue = { account = "", username = "", password = "" } }
19 ],
20 creds = {
21 account = "00000",
22 client_id = "oauth client id",
23 client_secret = "oauth client secret",
24 username = "dashboard user",
25 password = "dashboard password"
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 sip = {
47 realm = "",
48 app = ""
49 },
50 notify_admin = "muc@example.com",
51 sip_host = "sip.jmp.chat",
52 plans = [
53 {
54 name = "plan_name",
55 currency = < CAD | USD >.USD,
56 monthly_price = 29900,
57 minutes = <
58 unlimited |
59 limited: { included: Natural, price: Natural }
60 >.limited { included = 120, price = 87 },
61 messages = <
62 unlimited |
63 limited: { included: Natural, price: Natural }
64 >.unlimited,
65 allow_register = True,
66 subaccount_discount = 0
67 }
68 ],
69 sims = {
70 annual = { CAD = 100, USD = 100 },
71 esim = { CAD = 1, USD = 1 },
72 per_gb = { CAD = 100, USD = 100 },
73 sim = { CAD = 1, USD = 1 }
74 },
75 electrum = {
76 rpc_uri = "",
77 rpc_username = "",
78 rpc_password = "",
79 currency = ""
80 },
81 electrum_bch = {
82 rpc_uri = "",
83 rpc_username = "",
84 rpc_password = "",
85 currency = ""
86 },
87 oxr_app_id = "",
88 activation_amount = 15,
89 activation_amount_accept = 15,
90 credit_card_url = \(jid: Text) -> \(customer_id: Text) ->
91 "https://pay.jmp.chat/${jid}/credit_cards?customer_id=${customer_id}",
92 electrum_notify_url = \(address: Text) -> \(customer_id: Text) -> \(currency: Text) ->
93 "https://pay.jmp.chat/electrum_notify?address=${address}&customer_id=${customer_id}¤cy=${currency}",
94 adr = "",
95 interac = "",
96 payable = "",
97 notify_from = "+15551234567@example.net",
98 admins = ["test\\40example.com@example.net"],
99 direct_targets = toMap {
100 `+15551234567` = "support@example.com"
101 },
102 direct_sources = toMap {
103 `support@example.com` = "+15551234567"
104 },
105 keep_area_codes = [{ area_code = "555", premium_price = Some 10 }],
106 keep_area_codes_in = { account = "", site_id = "", sip_peer_id = "" },
107 snikket_hosting_api = "",
108 onboarding_domain = "",
109 rev_ai_token = "",
110 upstream_domain = "example.net",
111 approved_domains = toMap { `example.com` = Some "customer_id" },
112 parented_domains = toMap { `example.com` = { customer_id = "customer_id", plan_name = "usd" } },
113 offer_codes = toMap { someone = "xmpp:thing" },
114 keepgo = Some { api_key = "", access_token = "" },
115 simpleswap_api_key = "",
116 reachability_senders = [ "+14445556666" ],
117 support_link = \(customer_jid: Text) ->
118 "http://localhost:3002/app/accounts/2/contacts/custom_attributes/jid/${customer_jid}",
119 public_onboarding_url = "xmpp:example.com?register",
120 churnbuster = {
121 api_key = "",
122 account_id = ""
123 },
124 bulk_order_tokens = toMap { sometoken = { customer_id = "somecustomer", peer_id = "" } }
125}