From df0688b217623f62dc0d1beb9dc2910b21767c18 Mon Sep 17 00:00:00 2001 From: Yechan Kim Date: Tue, 17 May 2022 15:21:36 +0900 Subject: [PATCH] Plugins alternative path --- templates/local/nginx/nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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;