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	sgx_creds = [
 18		{ mapKey = "component-other.localhost", mapValue = { account = "", username = "", password = "" } }
 19	],
 20	creds = {
 21		account = "00000",
 22		username = "dashboard user",
 23		password = "dashboard password"
 24	},
 25	web_register = {
 26		to = "cheogram",
 27		from = "jmp-register@localhost"
 28	},
 29	bandwidth_site = "",
 30	bandwidth_peer = "",
 31	braintree = {
 32		environment = "sandbox",
 33		merchant_id = "",
 34		public_key = "",
 35		private_key = "",
 36		merchant_accounts = {
 37			USD = "",
 38			CAD = ""
 39		}
 40	},
 41	xep0157 = [
 42		{ var = "support-addresses", value = "xmpp:+14169938000@cheogram.com", label = "Support" }
 43	],
 44	sip = {
 45		realm = "",
 46		app = ""
 47	},
 48	notify_admin = "muc@example.com",
 49	sip_host = "sip.jmp.chat",
 50	plans = [
 51		{
 52			name = "plan_name",
 53			currency = < CAD | USD >.USD,
 54			monthly_price = 29900,
 55			minutes = <
 56				unlimited |
 57				limited: { included: Natural, price: Natural }
 58			>.limited { included = 120, price = 87 },
 59			messages = <
 60				unlimited |
 61				limited: { included: Natural, price: Natural }
 62			>.unlimited,
 63			allow_register = True,
 64			subaccount_discount = 0
 65		}
 66	],
 67	sims = {
 68		sim = [
 69			{ mapKey = <CAD|USD>.CAD, mapValue = { price = 1, plan = "$1 / GB + $1 / year" } }
 70		],
 71		esim = [
 72			{ mapKey = <CAD|USD>.CAD, mapValue = { price = 1, plan = "$1 / GB + $1 / year" } }
 73		]
 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}&currency=${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 = ["555"],
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	keepgo = Some { api_key = "", access_token = "" },
114	simpleswap_api_key = "",
115	reachability_senders = [ "+14445556666" ],
116	support_link = \(customer_jid: Text) ->
117		"http://localhost:3002/app/accounts/2/contacts/custom_attributes/jid/${customer_jid}"
118}