mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 09:38:49 +02:00
Merge branch 'refs/heads/development' into 36-improve-communication-between-microservices
# Conflicts: # reverseproxy.conf
This commit is contained in:
@ -155,18 +155,14 @@ http {
|
||||
server_name htwkalender.de;
|
||||
|
||||
location /api/feed {
|
||||
limit_req zone=feed burst=10 nodelay;
|
||||
limit_req zone=createFeed nodelay;
|
||||
proxy_pass http://htwkalender-ical:8091;
|
||||
client_max_body_size 2m;
|
||||
proxy_connect_timeout 600s;
|
||||
proxy_read_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
send_timeout 600s;
|
||||
|
||||
# Apply rate limiting
|
||||
if ($request_method = POST) {
|
||||
limit_req zone=createFeed burst=10 nodelay;
|
||||
}
|
||||
limit_req zone=feed burst=10 nodelay;
|
||||
limit_req_status 429;
|
||||
}
|
||||
|
||||
@ -196,13 +192,14 @@ http {
|
||||
ssl_certificate_key cal.htwk-leipzig.de.key.pem;
|
||||
|
||||
location /api/feed {
|
||||
limit_req zone=feed burst=10 nodelay;
|
||||
limit_req zone=createFeed nodelay;
|
||||
proxy_pass http://htwkalender-ical:8091;
|
||||
client_max_body_size 2m;
|
||||
proxy_connect_timeout 600s;
|
||||
proxy_read_timeout 600s;
|
||||
proxy_send_timeout 600s;
|
||||
send_timeout 600s;
|
||||
limit_req zone=$limit_zone burst=10 nodelay;
|
||||
limit_req_status 429;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user