Skip to content
Snippets Groups Projects
Commit e0e11ca1 authored by godog's avatar godog
Browse files

nginx: apply limits to default servers

parent 9e422e73
No related branches found
No related tags found
1 merge request!312nginx: apply limits to default servers
Pipeline #90546 passed
......@@ -22,9 +22,13 @@ server {
}
{% endif %}
if ($top_level_domain_redirect) {
return 301 $top_level_domain_redirect$request_uri;
}
if ($top_level_domain_redirect) {
return 301 $top_level_domain_redirect$request_uri;
}
# Global rate limits for the entire site (to protect backends).
limit_req zone=perip burst={{ nginx_limit_perip_burst }};
limit_req zone=perserver burst={{ nginx_limit_perserver_burst }};
# Redirect everything else to HTTPS.
location / {
......@@ -42,6 +46,10 @@ server {
root /var/www/html;
index index.html;
# Global rate limits for the entire site (to protect backends).
limit_req zone=perip burst={{ nginx_limit_perip_burst }};
limit_req zone=perserver burst={{ nginx_limit_perserver_burst }};
location /healthcheck {
access_log off;
return 200 "OK\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment