config.dhall.sample

 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	electrum = {
63		rpc_uri = "",
64		rpc_username = "",
65		rpc_password = ""
66	},
67	oxr_app_id = "",
68	activation_amount = 15,
69	activation_amount_accept = 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	direct_targets = toMap {
80		`+15551234567` = "support@example.com"
81	},
82	keep_area_codes = ["555"],
83	keep_area_codes_in = { account = "", site_id = "", sip_peer_id = "" },
84	snikket_hosting_api = "",
85	rev_ai_token = "",
86	upstream_domain = "example.net",
87	approved_domains = toMap { `example.com` = Some "customer_id" },
88	keepgo = Some { api_key = "", access_token = "" },
89	simpleswap_api_key = "",
90	support_link = \(customer_jid: Text) ->
91		"http://localhost:3002/app/accounts/2/contacts/custom_attributes/jid/${customer_jid}"
92}