Skip to content

Latest commit

 

History

History
66 lines (38 loc) · 1.83 KB

appendix-configure-env-vars.rst

File metadata and controls

66 lines (38 loc) · 1.83 KB

Configure environment variables

If you're using the DEB or RPM packages you can change Zammads environment variables by the following commands.

Configure IP

zammad config:set ZAMMAD_BIND_IP=0.0.0.0
systemctl restart zammad

Configure ports

Please note that you also have to reconfigure Nginx when changing the ports!

zammad config:set ZAMMAD_RAILS_PORT=3000
zammad config:set ZAMMAD_WEBSOCKET_PORT=6042
systemctl restart zammad

Application Servers

Per default one application server will get started. If you have more http requests (user sessions) you need to increase the amount of your application server. The typical problem is long waiting times in the web interface for opening or editing tickets.

zammad config:set WEB_CONCURRENCY=3
systemctl restart zammad

Configure Restart Command

If you need to make changes (creating objects) to Zammad, it can be necessary to restart the service. This can be done manually or automatic. If you like to use the automatic way you need to set an special environment variable.

Note: you might need to adjust the value for APP_RESTART_CMD if you have / need a different command to restart your Zammad on your installation.

zammad config:set APP_RESTART_CMD="systemctl restart zammad"

Configure Zammad to log to STDOUT

If you want to log to STDOUT instead of the production-logfile (/var/log/zammad/production.log) you can set it:

zammad config:set RAILS_LOG_TO_STDOUT=true

To reset this back to logfile logging run:

zammad config:set RAILS_LOG_TO_STDOUT=

Note

This applies to package installations: Do not set it to enabled, because we'll then unset the variable upon Update! Using true is update safe.