mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
fix config
This commit is contained in:
@@ -17,7 +17,7 @@ set httpd port 2812 and
|
|||||||
## Service (cleanup)
|
## Service (cleanup)
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
check program cleanup with path "/usr/bin/find /data -type f -cmin +60 -delete"
|
check program cleanup with path "/usr/bin/find /data -type f -cmin +30 -delete"
|
||||||
every 5 cycles
|
every 5 cycles
|
||||||
if status != 0 then alert
|
if status != 0 then alert
|
||||||
|
|
||||||
@@ -28,60 +28,60 @@ check program cleanup with path "/usr/bin/find /data -type f -cmin +60 -delete"
|
|||||||
check process webkit-8080 with pidfile /var/run/webkit-8080.pid
|
check process webkit-8080 with pidfile /var/run/webkit-8080.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8080"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8080"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8081 with pidfile /var/run/webkit-8081.pid
|
check process webkit-8081 with pidfile /var/run/webkit-8081.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8081"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8081"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8082 with pidfile /var/run/webkit-8082.pid
|
check process webkit-8082 with pidfile /var/run/webkit-8082.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8082"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8082"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8083 with pidfile /var/run/webkit-8083.pid
|
check process webkit-8083 with pidfile /var/run/webkit-8083.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8083"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8083"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8084 with pidfile /var/run/webkit-8084.pid
|
check process webkit-8084 with pidfile /var/run/webkit-8084.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8084"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8084"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8085 with pidfile /var/run/webkit-8085.pid
|
check process webkit-8085 with pidfile /var/run/webkit-8085.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8085"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8085"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8086 with pidfile /var/run/webkit-8086.pid
|
check process webkit-8086 with pidfile /var/run/webkit-8086.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8086"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8086"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8087 with pidfile /var/run/webkit-8087.pid
|
check process webkit-8087 with pidfile /var/run/webkit-8087.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8087"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8087"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8088 with pidfile /var/run/webkit-8088.pid
|
check process webkit-8088 with pidfile /var/run/webkit-8088.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8088"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8088"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
check process webkit-8089 with pidfile /var/run/webkit-8089.pid
|
check process webkit-8089 with pidfile /var/run/webkit-8089.pid
|
||||||
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8089"
|
restart program = "/usr/bin/supervisorctl restart webkit:webkit-8089"
|
||||||
if uptime > 1 hour then restart
|
if uptime > 1 hour then restart
|
||||||
if total memory > 50 MB for 5 cycles then restart
|
if total memory > 100 MB for 5 cycles then restart
|
||||||
if total cpu > 10% for 5 cycles then alert
|
if total cpu > 10% for 5 cycles then alert
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_localtime on;
|
||||||
expires max;
|
expires max;
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user