diff --git a/templates/local/nginx/nginx.conf b/templates/local/nginx/nginx.conf index e205fb35b2..0345f411da 100644 --- a/templates/local/nginx/nginx.conf +++ b/templates/local/nginx/nginx.conf @@ -91,6 +91,22 @@ server { } + location /api/plugins { + rewrite /api/plugins(/|$)(.*) /plugins/$2 break; + proxy_pass http://plugins; + } + + location /api/plugins/sms/verify { + limit_req zone=sms burst=10 nodelay; + limit_req_log_level info; + limit_req_status 429; + + rewrite /api/plugins/sms/verify(/|$)(.*) /plugins/sms/verify/$2 break; + + proxy_pass http://plugins; + + } + error_page 404 /404.html; location = /404.html { root /usr/share/nginx/html;