let ListenOn = < Inet: { interface: Text, port: Natural } | Unix: Text >
in
{
component = {
jid = "component.localhost",
secret = "secret"
},
server = {
host = "localhost",
port = 5347
},
sgx = "component2.localhost",
web = ListenOn.Inet { interface = "::1", port = env:PORT ? 8080 },
web_root = "https://example.com",
ogm_path = "/var/www/media.example.com",
ogm_web_root = "https://media.example.com",
creds = {
account = "00000",
username = "dashboard user",
password = "dashboard password"
},
catapult = {
user = "",
token = "",
secret = "",
application_id = "",
domain = "",
sip_host = ""
},
web_register = {
to = "cheogram",
from = "jmp-register@localhost"
},
bandwidth_site = "",
bandwidth_peer = "",
braintree = {
environment = "sandbox",
merchant_id = "",
public_key = "",
private_key = "",
merchant_accounts = {
USD = "",
CAD = ""
}
},
xep0157 = [
{ var = "support-addresses", value = "xmpp:+14169938000@cheogram.com", label = "Support" }
],
sip = {
realm = "",
app = ""
},
notify_admin = "muc@example.com",
sip_host = "sip.jmp.chat",
plans = [
{
name = "plan_name",
currency = < CAD | USD >.USD,
monthly_price = 29900,
minutes = <
unlimited |
limited: { included: Natural, price: Natural }
>.limited { included = 120, price = 87 },
messages = <
unlimited |
limited: { included: Natural, price: Natural }
>.unlimited
}
],
electrum = {
rpc_uri = "",
rpc_username = "",
rpc_password = ""
},
oxr_app_id = "",
activation_amount = 15,
credit_card_url = \(jid: Text) -> \(customer_id: Text) ->
"https://pay.jmp.chat/${jid}/credit_cards?customer_id=${customer_id}",
electrum_notify_url = \(address: Text) -> \(customer_id: Text) ->
"https://pay.jmp.chat/electrum_notify?address=${address}&customer_id=${customer_id}",
adr = "",
interac = "",
payable = "",
notify_from = "+15551234567@example.net",
admins = ["test\\40example.com@example.net"],
upstream_domain = "example.net"
}