1
1
Configuration via Environment Variables
2
2
=======================================
3
3
4
- Use these environment variables to configure Zammad's behavior at runtime.
4
+ Use environment variables to configure Zammad's settings and configuration.
5
+ If you installed Zammad via docker, there is an additional page describing
6
+ :doc: `/install/docker-compose/environment `.
5
7
6
- .. note :: 🙋 **What's an environment variable, and how do I “use” it ?**
8
+ .. note :: **How to set an environment variable?**
7
9
8
- Unfortunately, that question has a very long answer
9
- that goes beyond the scope of this article.
10
- How you set environment variables will depend on how you installed Zammad
11
- (*e.g., * source, package, or Docker).
10
+ It depends on how you installed Zammad (source, package, docker).
11
+ Either set it via ``zammad config `` command as you can see below, use your
12
+ system's way of setting variables via command line
13
+ (e.g. ``export VARIABLE=value) ``, place an ``.env `` file in the directory or
14
+ even use a GUI like Portainer to define them for a docker installation.
12
15
13
- But for package installations, here's a short answer :
16
+ Example for package installations:
14
17
15
18
.. code-block :: sh
16
19
@@ -25,9 +28,6 @@ Use these environment variables to configure Zammad's behavior at runtime.
25
28
$ zammad config:unset OPTION
26
29
$ systemctl restart zammad
27
30
28
- To learn more, do some googling on environment variables
29
- and the shell environment (or execution environment) in Unix.
30
-
31
31
.. important ::
32
32
33
33
While below options and remarks affect all installation types of Zammad,
@@ -112,6 +112,17 @@ ZAMMAD_WEBSOCKET_PORT
112
112
113
113
Default: ``6042 ``
114
114
115
+ RAILS_TRUSTED_PROXIES
116
+ This setting is important for the correct detection of client IP addresses
117
+ and features based on it, like rate limiting.
118
+
119
+ By default, Zammad trusts localhost proxies only. Any additional proxy servers
120
+ will have to be added here, by IP address (if static) or by host name.
121
+ Host names are resolved during the start of Zammad, so that a restart is required
122
+ whenever the IP address of a proxy server changes.
123
+
124
+ Default: ``127.0.0.1,::1 ``
125
+
115
126
.. _performance_tuning :
116
127
117
128
Performance Tuning
@@ -167,14 +178,6 @@ ZAMMAD_PROCESS_SCHEDULED_JOBS_WORKERS
167
178
| Default: **unset**
168
179
| Maximum number of workers: ``1``
169
180
170
- .. danger ::
171
-
172
- Disable processing of scheduled jobs by setting
173
- ``ZAMMAD_PROCESS_SCHEDULED_JOBS_DISABLE ``.
174
-
175
- Doing so on productive instances will draw important parts of your
176
- instance not working. **WE STRONGLY ** encourage against using this flag.
177
-
178
181
ZAMMAD_PROCESS_DELAYED_JOBS_WORKERS
179
182
How many processes should work on delayed jobs?
180
183
@@ -187,14 +190,6 @@ ZAMMAD_PROCESS_DELAYED_JOBS_WORKERS
187
190
188
191
.. warning :: 🥵 **This option can be very CPU-intensive.**
189
192
190
- .. danger ::
191
-
192
- Disable processing of delayed jobs by setting
193
- ``ZAMMAD_PROCESS_DELAYED_JOBS_DISABLE ``.
194
-
195
- Doing so on productive instances will draw important parts of your
196
- instance not working. **WE STRONGLY ** encourage against using this flag.
197
-
198
193
199
194
ZAMMAD_PROCESS_DELAYED_AI_JOBS_WORKERS
200
195
How many instances of AI workers should run simultaneously. AI workers handle
0 commit comments