Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
d53f25c7
Commit
d53f25c7
authored
Jun 19, 2018
by
Juorder Gonzalez quiñonez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix config for production and development mode
parent
5edfba4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
208 additions
and
6 deletions
+208
-6
docker-compose.dev.yml
docker-compose.dev.yml
+1
-1
config.development.json
src/config/config.development.json
+201
-0
config.json
src/config/config.json
+6
-5
No files found.
docker-compose.dev.yml
View file @
d53f25c7
...
...
@@ -25,4 +25,4 @@ services:
environment
:
# all config vars are passing as a env vars
PORT
:
7500
NODE_ENV
:
production
NODE_ENV
:
development
src/config/config.development.json
0 → 100644
View file @
d53f25c7
{
"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."
}
}
src/config/config.json
View file @
d53f25c7
...
...
@@ -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"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment