fix
Showing
1 changed file
with
0 additions
and
8 deletions
| ... | @@ -49,14 +49,6 @@ server { | ... | @@ -49,14 +49,6 @@ server { |
| 49 | proxy_pass http://daop-gateway:8053/; | 49 | proxy_pass http://daop-gateway:8053/; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | # 专门处理 config.json 的 location | ||
| 53 | location = /config.json { | ||
| 54 | # 启用 sub_filter 并指定 MIME 类型为 application/json | ||
| 55 | sub_filter '{{{APP_KEY}}}' '${APP_KEY}'; | ||
| 56 | sub_filter_once off; | ||
| 57 | sub_filter_types application/json; # 关键:允许替换 JSON 类型 | ||
| 58 | } | ||
| 59 | |||
| 60 | error_page 500 502 503 504 /50x.html; | 52 | error_page 500 502 503 504 /50x.html; |
| 61 | location = /50x.html { | 53 | location = /50x.html { |
| 62 | root /usr/share/nginx/html; | 54 | root /usr/share/nginx/html; | ... | ... |
-
Please register or sign in to post a comment