-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
54 lines (43 loc) · 1.33 KB
/
.env.example
File metadata and controls
54 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Server Configuration
NODE_ENV=development
PORT=3000
# Seguridad
SESSION_SECRET=your-super-secret-session-key-here
# MailAD Configuration
MAILAD_PATH=/usr/local/bin/mailad
POSTFIX_ALIASES_PATH=/etc/postfix/aliases/alias_virtuales
POSTFIX_BLACKLIST_PATH=/etc/postfix/rules/lista_negra
POSTFIX_TRANSPORT_PATH=/etc/postfix/transport
POSTFIX_MAIN_CF_PATH=/etc/postfix/main.cf
LDAP_CONFIG_PATH=/etc/mailad/ldap.conf
CLAMAV_CONFIG_PATH=/etc/clamav
SSL_CONFIG_PATH=/etc/mailad/ssl.conf
# LDAP/AD Configuration
LDAP_URL=ldap://your-domain-controller:389
LDAP_BASE_DN=dc=yourdomain,dc=com
LDAP_BIND_DN=cn=admin,dc=yourdomain,dc=com
LDAP_BIND_PASSWORD=your-ldap-password
LDAP_USER_ATTRIBUTE=sAMAccountName
# Grupo de administradores de MailAd
LDAP_ADMIN_GROUP=CN=MailADAdmins,OU=Groups,DC=yourdomain,DC=com
# Configuración de Caché (opcional)
CACHE_TTL=900
CACHE_CHECK_PERIOD=60
# Logs de caché (opcional)
DEBUG_CACHE=true
# Logging
LOG_LEVEL=info
LOG_FILE=logs/app.log
# Base de datos
DB_PATH=/var/lib/mailad-admin/database.sqlite
# Security
BCRYPT_ROUNDS=12
UPLOAD_PATH=public/uploads
MAX_FILE_SIZE=5242880
# Configuración de Rate Limiting (opcional)
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_LOGIN=5
RATE_LIMIT_MAX_API=100
# Aceptar certificados autofirmados por NODE.JS
NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
NODE_TLS_REJECT_UNAUTHORIZED=0