Variabili d'ambiente
Find the most important environment variables below with default values (as badge), if applicable. The variables for Docker and package based installations can be different in some cases. You can find another badge appended to variable names with the following meaning:
- Disponibile solo per installazioni Docker:
- Disponibile solo per installazioni tramite pacchetto:
- Disponibile per entrambe le varianti di installazione: senza badge
TIP
Se vuoi usare un file .env nelle distribuzioni Docker Compose, puoi usare quello fornito.
Varie
GPG_PATH- Definisce il percorso della tua installazione GPG. Necessario solo se vuoi usarla.
RAILS_LOG_TO_STDOUT- Questa impostazione può essere sovrascritta durante l'aggiornamento sulle installazioni tramite pacchetto.
ZAMMAD_SAFE_MODE- Fai attenzione quando esegui comandi Zammad su sistemi di produzione.
ZAMMAD_BIND_IP127.0.0.1
- L'indirizzo IP a cui il web server si collega.
S3_URL- Ti permette di fornire la configurazione del tuo provider di storage S3. Esempio per.
Zammad
VERSIONcurrent stable version of Zammad
- Allows customization of the Zammad image tag. Example:
6.3.1-54. This default version may be increased when you update your Zammad Docker stack. Please see the example env file for more details on this variable. AUTOWIZARD_JSON- This variable allows you to provide initial configuration data for your instance. Autowizard JSON is out of scope of this documentation, however this example file should help.
ZAMMAD_HTTP_TYPE : Imposta il tipo http per la tua istanza. I valori possibili sono http e `
ZAMMAD_FQDN : Imposta l'FQDN per la tua istanza.
RAILS_TRUSTED_PROXIES127.0.0.1,::1Questa impostazione è importante.
Per impostazione predefinita, Zammad si fida solo dei proxy localhost. Eventuali server proxy aggiuntivi devono essere aggiunti.
Nota che nel contesto Docker, Zammad potrebbe vedere l'indirizzo IP del gateway di rete invece di.
ZAMMAD_MANAGE_SESSIONS_JOBS_WORKERS0Permette di forkare il worker.
ZAMMAD_PROCESS_DELAYED_AI_JOBS_WORKERS0Tale worker gestisce.
Gli utenti AI self-hosted dovrebbero fare attenzione ad aumentarlo, il tuo servizio AI potrebbe collassare.
ZAMMAD_PROCESS_DELAYED_AI_JOBS_WORKERS_THREADS5Quanti.
ZAMMAD_PROCESS_DELAYED_COMMUNICATION_INBOUND_JOBS_WORKERS 0
ZAMMAD_PROCESS_DELAYED_COMMUNICATION_INBOUND_JOBS_WORKER_THREADS <Badge type="tip" text=
MEMCACHE_SERVERS Docker: zammad-memcached:11211 <Badge type=
REDIS_URLDocker: redis://zammad-redis:6379 Package: unset- Provide your own Redis instance if you already have one. The package installation fallback is
/opt/zammad/tmp/websocket_*. See Redis Variables for a Sentinel setup.
Elasticsearch
ELASTICSEARCH_ENABLEDtrue
- Impostare questa variabile su.
ELASTICSEARCH_HOSTzammad-elasticsearch
- Fornisci un host.
ELASTICSEARCH_PORT9200
- Fornisci una porta diversa per.
ELASTICSEARCH_SCHEMAhttp
- Cambialo in
httpsse. ELASTICSEARCH_NAMESPACEzammad
- Con questo namespace.
ELASTICSEARCH_REINDEX- L'indice di ricerca viene ricostruito automaticamente quando nessun indice.
ELASTICSEARCH_SSL_VERIFYtrue
- Ti permette di far.
ELASTICSEARCH_HEAP_SIZE1G
- Imposta la memoria disponibile.
PostgreSQL
TIP
Le variabili per l'installazione Docker e tramite pacchetto sono parzialmente diverse. Controlla le limitazioni.
POSTGRESQL_HOSTzammad-postgresql
- Nome host o indirizzo IP.
POSTGRESQL_PORT5432
- Regola la porta del tuo PostgreSQL.
POSTGRESQL_USERzammad
- L'utente database per Zammad.
POSTGRESQL_PASSzammad
- La password del database di Zammad.
POSTGRESQL_DBzammad_production
- Il database di Zammad da.
POSTGRES_HOSTzammad-postgresql
- Nome host o indirizzo IP.
POSTGRES_PORT5432
- Regola la porta del tuo PostgreSQL.
POSTGRES_USERzammad
- L'utente database per Zammad.
POSTGRES_PASSzammad
- La password del database di Zammad.
POSTGRES_DBzammad_production
- Il database di Zammad da usare.
POSTGRESQL_OPTIONS?pool=50- Parametri PostgreSQL aggiuntivi da.
POSTGRESQL_DB_CREATEtrue- By default, Zammad creates the required database. On already existing database servers, the default might be troublesome.
Nginx
NGINX_EXPOSE_PORT8080
- La porta da esporre per l'accesso.
NGINX_PORT8080
- La porta interna che il servizio Nginx usa.
NGINX_SERVER_NAME_
- Per impostazione predefinita, il container Nginx.
NGINX_SERVER_SCHEME\$scheme
- Se il container Nginx.
NGINX_CLIENT_MAX_BODY_SIZE : Definisce la dimensione massima dei dati che un client può inviare.
ZAMMAD_RAILSSERVER_HOSTzammad-railsserver
- Nome host.
ZAMMAD_RAILSSERVER_PORT3000
- Porta del server Rails di Zammad.
ZAMMAD_RAILS_PORT3000
- Porta del server Rails di Zammad.
ZAMMAD_WEBSOCKET_HOSTzammad-websocket
- Nome host di.
ZAMMAD_WEBSOCKET_PORT6042
- Porta del websocket di Zammad.
Ottimizzazione delle prestazioni
Ognuna delle impostazioni seguenti comporta dei compromessi. Non ci sono valori consigliati qui.
Procedi con cautela; quando regoli una di queste impostazioni, c'è un punto in cui le prestazioni.
Below settings may consume all available database connections. Please consider the Configure Database Server for more information.
ZAMMAD_WEB_CONCURRENCYAllows spawning
nworkers to allow more simultaneous connections for Zammad's web UI. In case you applied Docker hardware resource limits, the zammad-railsserver's CPU setting should match the value from this variable.ZAMMAD_PROCESS_SESSION_JOBS_WORKERSQuanti processi del worker di sessione eseguire.
In case you applied Docker hardware resource limits, the zammad-scheduler CPU setting should match the sum of all worker settings variables.
ZAMMAD_PROCESS_SCHEDULED_JOBS_WORKERSPermette di generare
1worker indipendente per i job pianificati.In case you applied Docker hardware resource limits, the zammad-scheduler CPU setting should match the sum of all worker settings variables.
ZAMMAD_PROCESS_DELAYED_JOBS_WORKERSPermette di generare
nprocessi worker per rilasciare.In case you applied Docker hardware resource limits, the zammad-scheduler CPU setting should match the sum of all worker settings variables.
ZAMMAD_PROCESS_DELAYED_JOBS_WORKER_THREADSThread usati da un worker dei job ritardati.
Impostazioni client HTTP
Impostazioni globali di timeout HTTP. Queste variabili controllano il comportamento di timeout predefinito.
ZAMMAD_HTTP_OPEN_TIMEOUT30- Definisce il tempo massimo in secondi.
ZAMMAD_HTTP_READ_TIMEOUT60- Definisce il tempo massimo in secondi.
ZAMMAD_HTTP_TOTAL_TIMEOUT60- Definisce il tempo totale massimo.
Come impostare le variabili d'ambiente
Dipende da come hai installato Zammad (pacchetto, Docker). Impostala tramite zammad config.
Esempi per installazioni tramite pacchetto:
Imposta OPZIONE a "valore":
zammad config:set OPTION=valueOttieni OPZIONE:
zammad config:get OPTIONRimuovi OPZIONE:
zammad config:unset OPTIONRiavvia Zammad dopo aver modificato le impostazioni:
sudo systemctl restart zammad