You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,11 @@ This mod gives SWAG the ability to start containers on-demand when accessed thro
24
24
'"$http_referer" "$http_user_agent"';
25
25
access_log /config/log/nginx/access.log main;
26
26
```
27
-
- *Optional* - In SWAG's docker arguments, set an environment variable `SWAG_ONDEMAND_STOP_THRESHOLD` to override the period of inactivity in seconds before stopping the container. Defaults to `600` which is 10 minutes.
28
-
```yaml
29
-
swag:
30
-
container_name: swag
31
-
...
32
-
environment:
33
-
- SWAG_ONDEMAND_STOP_THRESHOLD=600
34
-
```
27
+
- *Optional* - Additional environment variables
28
+
- `SWAG_ONDEMAND_STOP_THRESHOLD`- duration of inactivity in seconds before stopping on-demand containers, defaults to `600` (10 minutes).
29
+
- `SWAG_ONDEMAND_CONTAINER_QUERY_SLEEP`- sleep time in seconds between querying containers, defaults to `5.0`.
30
+
- `SWAG_ONDEMAND_LOG_READER_SLEEP`- sleep time in seconds between log reads, defaults to `1.0`.
0 commit comments