Skip to content

Commit

Permalink
Plugins alternative path
Browse files Browse the repository at this point in the history
  • Loading branch information
kycfeel committed May 17, 2022
1 parent 3c4f3db commit df0688b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions templates/local/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df0688b

Please sign in to comment.