|
@@ -330,6 +330,8 @@ function install_riot {
|
330
|
330
|
|
331
|
331
|
sed '/Content-Security-Policy/d' $riot_nginx_site
|
332
|
332
|
sed -i 's| DENY;| SAMEORIGIN;|g' $riot_nginx_site
|
|
333
|
+ sed -i 's|limit_conn conn_limit_per_ip.*|limit_conn conn_limit_per_ip 50;|g' $riot_nginx_site
|
|
334
|
+ sed -i 's|limit_req zone.*|limit_req zone=req_limit_per_ip burst=20 nodelay;|g' $riot_nginx_site
|
333
|
335
|
|
334
|
336
|
function_check create_site_certificate
|
335
|
337
|
if [ ! -f /etc/ssl/certs/${RIOT_DOMAIN_NAME}.pem ]; then
|