66 lines
2.2 KiB
Bash
66 lines
2.2 KiB
Bash
# OTRS Turbo - Environment Configuration
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# Database Dialect: 'postgres' (default) or 'mysql' (for MySQL/MariaDB)
|
|
DB_TYPE=postgres
|
|
|
|
# Database Connection Details
|
|
DB_HOST=your_db_ip_here
|
|
DB_PORT=5432
|
|
DB_NAME=otrs
|
|
DB_USER=otrs
|
|
DB_PASSWORD=your_password_here
|
|
|
|
# Server Port
|
|
PORT=3000
|
|
|
|
OTRS_API_USER=root@localhost
|
|
OTRS_API_PASSWORD=your_password_here
|
|
OTRS_API_URL=http://your_otrs_host_or_ip/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST
|
|
|
|
#Variabile per il Tempo di consultivazione giornaliero
|
|
DAILY_TARGET_TIME=480
|
|
|
|
#Variabile per la numerazione dei ticket
|
|
OTRS_SYSTEM_ID=10
|
|
OTRS_COUNTER_PADDING=6
|
|
# Intervallo in ore per la sincronizzazione automatica LDAP (default 24 ore)
|
|
LDAP_SYNC_INTERVAL_HOURS=24
|
|
|
|
# Imposta a true per forzare l'aggiornamento diretto del DB per tutte le modifiche ai ticket bypassando l'API REST (esclusa la ricerca LDAP)
|
|
FORCE_DB_UPDATE=false
|
|
|
|
# Tempo di attesa in millisecondi prima della verifica a database dopo l'inserimento nota via API (default 3000)
|
|
OTRS_API_FALLBACK_WAIT_MS=3000
|
|
|
|
# Chiave per cifrare le frasi nel database locale (NON CANCELLARE O MODIFICARE SE CI SONO DATI CRIPTATI)
|
|
CRYPTO_KEY=f30b91e92d77a06c59b20b2272e2cfbc
|
|
|
|
# Soglia in percentuale del target tempo giornaliero per l'attivazione delle frasi demotivazionali (es. 70 per il 70%)
|
|
PHRASE_THRESHOLD=70
|
|
|
|
# Configurazioni per la consuntivazione automatica fine giornata
|
|
AUTO_TIME_MIN_HOUR=18:00
|
|
AUTO_TIME_QUEUE=Assistenza
|
|
AUTO_TIME_TYPE=Default
|
|
AUTO_TIME_TITLE=Consuntivazione Automatica fine giornata
|
|
AUTO_TIME_SUBJECT=Consuntivazione automatica ore mancanti
|
|
AUTO_TIME_BODY=Consuntivazione eseguita automaticamente per il completamento delle ore lavorative giornaliere.
|
|
AUTO_TIME_CUSTOMER_USER=client_generic
|
|
|
|
# --- Microsoft Graph API per invio email (metodo primario - Exchange con 2FA) ---
|
|
AZURE_TENANT_ID=your_tenant_id_here
|
|
AZURE_CLIENT_ID=your_client_id_here
|
|
AZURE_CLIENT_SECRET=your_client_secret_here
|
|
AZURE_MAIL_SENDER=helpdesk@example.com
|
|
|
|
# --- SMTP Classico (fallback se Graph API non disponibile - lasciare vuoto per disabilitare) ---
|
|
SMTP_HOST=
|
|
SMTP_PORT=587
|
|
SMTP_SECURE=false
|
|
SMTP_USER=
|
|
SMTP_PASSWORD=
|
|
SMTP_FROM=helpdesk@example.com
|
|
|
|
# --- BCC automatico OTRS per tracciamento ticket ---
|
|
OTRS_MAIL_BCC=helpdesk@example.com |