Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
fc26c753
Commit
fc26c753
authored
9 years ago
by
Owain Jones
Browse files
Options
Download
Email Patches
Plain Diff
added rate limiting to nginx config; stops people killing server by hammering refresh
parent
3728f035
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
gliders.nginx.conf
gliders.nginx.conf
+5
-0
No files found.
gliders.nginx.conf
View file @
fc26c753
...
...
@@ -4,6 +4,8 @@
# upstream FCGI" location section below. Be careful adding files with
# sensitive data like passwords inside them.
limit_req_zone
$
binary_remote_addr
zone
=
gliders
:
10
m
rate
=
10
r
/
s
;
map
$
host
$
symfony_root
{
# default /home/gliders/code/gliders-website;
default
/
var
/
gliders
/
www
;
...
...
@@ -32,6 +34,7 @@ server {
rewrite
^/
app
\.
php
/?(.*)$ /$
1
permanent
;
location
/ {
limit_req
zone
=
gliders
burst
=
5
;
index
app
.
php
;
try_files
$
uri
@
rewriteapp
;
}
...
...
@@ -95,6 +98,7 @@ server {
rewrite
^/
app_dev
\.
php
/?(.*)$ /$
1
permanent
;
location
/ {
limit_req
zone
=
gliders
burst
=
5
;
index
app_dev
.
php
;
try_files
$
uri
@
rewriteapp
;
}
...
...
@@ -156,6 +160,7 @@ server {
rewrite
^/
app_dev
\.
php
/?(.*)$ /$
1
permanent
;
location
/ {
limit_req
zone
=
gliders
burst
=
5
;
index
app_dev
.
php
;
try_files
$
uri
@
rewriteapp
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment