fix config for production and development mode

parent 5edfba4e
......@@ -25,4 +25,4 @@ services:
environment:
# all config vars are passing as a env vars
PORT: 7500
NODE_ENV: production
NODE_ENV: development
{
"debug": true,
"dev": true,
"enableStores": false,
"managerProxy": "https://devmanager.zboxapp.com",
"zimbraUrl": "/zimbra_proxy/service/admin/soap",
"zimbraProxy": "https://zimbra.zboxapp.dev:7071",
"dnsApiUrl": "http://zimbra.zboxapp.dev:3000",
"webMailUrl": "https://admin-mail.zboxapp.com/",
"salesAPI": {
"base": "https://manager-api.zboxapp.com/parse",
"getPrices": "/functions/getPrices",
"makeSale": "/functions/makeSale",
"requestSale": "/functions/setPurchase",
"appId": "salesZboxManagerApp"
},
"invoiceAPI": { "currency": "CLP", "requireTax": true },
"timeoutRequest": 600000,
"dns": {
"url": "/powerdns_proxy/",
"token": "otto",
"inmutable": ["mx", "soa", "ns", "spf"],
"template": {
"zone_data": {
"kind": "Master",
"nameservers": ["ns.zboxapp.com", "ns2.zboxapp.com"],
"soa_edit": "DEFAULT",
"soa_edit_api": "DEFAULT",
"masters": []
},
"zone_records": [
{
"name": "{{=zone.name}}",
"type": "SOA",
"content":
"ns.zboxapp.com. dns.zboxapp.com. 0 10800 3600 604800 3600",
"disabled": false,
"ttl": 900,
"priority": 0
},
{
"name": "{{=zone.name}}",
"type": "NS",
"content": "ns.zboxapp.com.",
"disabled": false,
"ttl": 900,
"priority": 0
},
{
"name": "{{=zone.name}}",
"type": "NS",
"content": "ns2.zboxapp.com.",
"disabled": false,
"ttl": 900,
"priority": 0
},
{
"name": "{{=zone.name}}",
"type": "MX",
"content": "5 mailcleaner.zboxapp.com.",
"disabled": false,
"ttl": 900,
"priority": 5
},
{
"name": "{{=zone.name}}",
"type": "TXT",
"content": "\"v=spf1 include:_spf.zboxapp.com -all\"",
"disabled": false,
"ttl": 900,
"priority": 0
},
{
"name": "mail.{{=zone.name}}",
"type": "CNAME",
"content": "mail.zboxapp.com.",
"disabled": false,
"ttl": 900,
"priority": 0
}
]
}
},
"maxAttachmentLimit": { "max": 52428800, "min": 1048576, "step": 1048576 },
"maxResultOnRequestZimbra": 4000,
"autoincrementOnFailRequestZimbra": 500,
"plans": {
"Basic": {
"statusCos": "btn-success",
"label": "Basica",
"isEnabledToEdit": true,
"forRights": true,
"sales": [
{ "disabled": false },
{ "disabled": true, "label": "Precio", "hasPrice": true },
{ "disabled": true, "label": "$", "ref": "total" }
]
},
"Premium": {
"statusCos": "btn-primary2",
"label": "Premium",
"isEnabledToEdit": true,
"forRights": true,
"archiving": true,
"refer": "archiving",
"sales": [
{ "disabled": false },
{ "disabled": true, "label": "Precio", "hasPrice": true },
{ "disabled": true, "label": "$", "ref": "total" }
]
},
"Professional": {
"statusCos": "btn-primary",
"label": "Profesional",
"isEnabledToEdit": true,
"forRights": true,
"sales": [
{ "disabled": false },
{ "disabled": true, "label": "Precio", "hasPrice": true },
{ "disabled": true, "label": "$", "ref": "total" }
]
},
"archiving": {
"statusCos": "btn-primary",
"label": "Archiving",
"isEnabledToEdit": false,
"regexp": ".archive$"
},
"default": false
},
"multiFormDomain": { "hasMailCleaner": false, "hasDNSZone": true },
"webmailLifetime": 3600,
"companiesEndPoints": {
"list": "/folio/companies.json",
"detail": "/folio/companies/{id}.json",
"invoices":
"/folio/companies/{id}/invoices.json?exclude=draft"
},
"globalAttrsBySection": {
"mailboxes": {
"attrs": {
"givenName": true,
"sn": true,
"cn": true,
"displayName": true,
"description": true,
"zimbraCOSId": true,
"zimbraAccountStatus": true,
"zimbraMailHost": true,
"zimbraMailQuota": true,
"zimbraArchiveAccount": true,
"zimbraMailAlias": true,
"zimbraPrefOutOfOfficeReplyEnabled": true,
"zimbraPrefOutOfOfficeFromDate": true,
"zimbraPrefOutOfOfficeUntilDate": true,
"zimbraPrefOutOfOfficeReply": true,
"zimbraCreateTimestamp": true,
"zimbraLastLogonTimestamp": true,
"zimbraIsDelegatedAdminAccount": true
}
},
"domains": {
"attrs": {
"zimbraDomainStatus": true,
"description": true,
"businessCategory": true,
"zimbraCreateTimestamp": true,
"zimbraDomainType": true,
"zimbraMailCatchAllForwardingAddress": true,
"amavisMessageSizeLimit": true
}
},
"search": {
"attrs": {
"zimbraDomainType": true,
"zimbraMailCatchAllForwardingAddress": true,
"objectClass": true
}
}
},
"export": {
"domain": {
"name": "Email",
"givenName": "Nombre",
"sn": "Apellido",
"cn": "Usuario",
"zimbraCOSId": "Plan",
"zimbraAccountStatus": "Status"
},
"members": { "name": "Miembros" },
"allowers": { "name": "Permitidos" }
},
"messageCode": {
"200":
"Se le ha enviado a su correo una copia de las casillas que ha solicitado, en breve estarán disponibles.",
"201": "Se ha notificado su pedido al departamento de ventas.",
"401": "Algunos parámetros son requeridos",
"402": "Debe agregar las casillas que desea comprar",
"409": "Hubo un error, intente de nuevo por favor."
}
}
......@@ -2,7 +2,8 @@
"debug": true,
"dev": false,
"enableStores": false,
"zimbraUrl": "https://manager2.zboxapp.com/zimbra_proxy/service/admin/soap",
"managerProxy": "https://manager2.zboxapp.com",
"zimbraUrl": "/zimbra_proxy/service/admin/soap",
"zimbraProxy": "https://zimbra.zboxapp.dev:7071",
"dnsApiUrl": "http://zimbra.zboxapp.dev:3000",
"webMailUrl": "https://admin-mail.zboxapp.com/",
......@@ -16,7 +17,7 @@
"invoiceAPI": { "currency": "CLP", "requireTax": true },
"timeoutRequest": 600000,
"dns": {
"url": "https://manager2.zboxapp.com/powerdns_proxy/",
"url": "/powerdns_proxy/",
"token": "otto",
"inmutable": ["mx", "soa", "ns", "spf"],
"template": {
......@@ -130,10 +131,10 @@
"multiFormDomain": { "hasMailCleaner": false, "hasDNSZone": true },
"webmailLifetime": 3600,
"companiesEndPoints": {
"list": "https://manager2.zboxapp.com/folio/companies.json",
"detail": "https://manager2.zboxapp.com/folio/companies/{id}.json",
"list": "/folio/companies.json",
"detail": "/folio/companies/{id}.json",
"invoices":
"https://manager2.zboxapp.com/folio/companies/{id}/invoices.json?exclude=draft"
"/folio/companies/{id}/invoices.json?exclude=draft"
},
"globalAttrsBySection": {
"mailboxes": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment