Skip to content
Snippets Groups Projects
Commit 330e7955 authored by Bob Mottram's avatar Bob Mottram
Browse files

Add limits to fedwiki config

parent 74285ed1
No related branches found
No related tags found
No related merge requests found
......@@ -361,6 +361,10 @@ function fedwiki_setup_web {
echo ' }';
echo '';
echo ' location / {';
echo '';
echo ' limit_conn conn_limit_per_ip 50;';
echo ' limit_req zone=req_limit_per_ip burst=50 nodelay;';
echo '';
echo " proxy_pass http://localhost:${FEDWIKI_PORT};";
echo " proxy_set_header X-Real-IP \$remote_addr;";
echo " proxy_set_header Host \$host;";
......@@ -385,6 +389,10 @@ function fedwiki_setup_web {
echo ' }';
echo '';
echo ' location / {';
echo '';
echo ' limit_conn conn_limit_per_ip 50;';
echo ' limit_req zone=req_limit_per_ip burst=50 nodelay;';
echo '';
echo " proxy_pass http://localhost:${FEDWIKI_PORT};";
echo " proxy_set_header X-Real-IP \$remote_addr;";
echo " proxy_set_header Host \$host;";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment