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	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	bandwidth_app = "", -- This can be any voice app
37	braintree = {
38		environment = "sandbox",
39		merchant_id = "",
40		public_key = "",
41		private_key = "",
42		merchant_accounts = {
43			USD = "",
44			CAD = ""
45		}
46	},
47	xep0157 = [
48		{ var = "support-addresses", value = "xmpp:+14169938000@cheogram.com", label = "Support" }
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		}
66	],
67	electrum = {
68		rpc_uri = "",
69		rpc_username = "",
70		rpc_password = ""
71	},
72	oxr_app_id = "",
73	activation_amount = 15,
74	credit_card_url = \(jid: Text) -> \(customer_id: Text) ->
75		"https://pay.jmp.chat/${jid}/credit_cards?customer_id=${customer_id}",
76	electrum_notify_url = \(address: Text) -> \(customer_id: Text) ->
77		"https://pay.jmp.chat/electrum_notify?address=${address}&customer_id=${customer_id}",
78	adr = "",
79	interac = "",
80	payable = "",
81	notify_from = "+15551234567@example.net",
82	admins = ["test\\40example.com@example.net"],
83	upstream_domain = "example.net"
84}