hexabot/docker/nginx/99-autoreload.sh

7 lines
160 B
Bash
Raw Normal View History

2024-09-13 10:07:41 +00:00
#!/bin/sh
while :; do
# Optional: Instead of sleep, detect config changes and only reload if necessary.
sleep 6h
nginx -t && nginx -s reload
done &