diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2017-11-13 18:19:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-21 12:06:11 +0000 |
commit | 242dfebcfef6c8aded0242672b18db60b6385bed (patch) | |
tree | 8d32124726e92496ff04f7ec243a22aca746bac4 /testing/nginx-naxsi/sysguard.conf | |
parent | 79e98c5a7df46670558578d91e69b41326b67cdf (diff) | |
download | aports-242dfebcfef6c8aded0242672b18db60b6385bed.tar.bz2 aports-242dfebcfef6c8aded0242672b18db60b6385bed.tar.xz |
testing/nginx-naxsi: update to 1.13.8
* add `sysguard.conf` to the sysguard module
* fixes `${SVCNAME}` => `${RC_SVCNAME}` in `initd`
* add `server_tokens off;` to `default.conf`
https://nginx.org/en/CHANGES
Diffstat (limited to 'testing/nginx-naxsi/sysguard.conf')
-rw-r--r-- | testing/nginx-naxsi/sysguard.conf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/nginx-naxsi/sysguard.conf b/testing/nginx-naxsi/sysguard.conf new file mode 100644 index 0000000000..25619d3d4e --- /dev/null +++ b/testing/nginx-naxsi/sysguard.conf @@ -0,0 +1,25 @@ +# http://tengine.taobao.org/document/http_sysguard + +sysguard on; + +sysguard_load load=10.5 action=/loadlimit; +sysguard_mem swapratio=20% action=/swaplimit; +sysguard_mem free=20M action=/freelimit; +sysguard_rt rt=2.5 period=5s action=/rtlimit; + +location /loadlimit { + return 503; +} + +location /swaplimit { + return 503; +} + +location /freelimit { + return 503; +} + +location /rtlimit { + return 503; +} + |