|
@@ -105,6 +105,17 @@ server {
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ # 推荐问题接口(无需JWT,首页加载时调用)
|
|
|
|
|
+ location /apiv1/recommend_question {
|
|
|
|
|
+ limit_req zone=limit_ip_uri burst=20 nodelay;
|
|
|
|
|
+ limit_conn conn_by_ip 20;
|
|
|
|
|
+ proxy_pass http://127.0.0.1:22001;
|
|
|
|
|
+ proxy_set_header Host $host;
|
|
|
|
|
+ proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
+ proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
# 系统后端API(需JWT鉴权)
|
|
# 系统后端API(需JWT鉴权)
|
|
|
location /apiv1 {
|
|
location /apiv1 {
|
|
|
limit_req zone=limit_ip_uri burst=20 nodelay;
|
|
limit_req zone=limit_ip_uri burst=20 nodelay;
|