添加共享内存
配置文件 config.yaml
cd /usr/local/apisix/conf && vim config.yaml
生成的 nginx.conf 可以看到
http 模块的 lua_shared_dict 共享内存
# put this in config.yaml:
nginx_config:
http_configuration_snippet: |
# for openid-connect plugin
lua_shared_dict discovery 1m; # cache for discovery metadata documents
lua_shared_dict jwks 1m; # cache for JWKs
lua_shared_dict introspection 10m; # cache for JWT verification results
开关access_log
配置
# 编辑配置文件
cd /usr/local/apisix/conf && vim config-default.yaml
# 或者
cd /usr/local/apisix/conf && vim config.yaml
# 修改配置
nginx_config:
http:
enable_access_log: false
# 重启apisix
apisix restart
# 判断apisix是否重启成功
curl "http://192.168.1.164:9080/apisix/admin/services/" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'
生成的nginx配置文件
开启gzip
参考: https://www.cnblogs.com/loseself/p/16165946.html
参考文档
https://apisix.apache.org/zh/docs/apisix/next/customize-nginx-configuration/
https://apisix.apache.org/zh/docs/apisix/plugin-develop/
https://apisix.apache.org/zh/docs/apisix/customize-nginx-configuration
https://blog.csdn.net/u010711495/article/details/111053577
https://blog.csdn.net/weiyuefei/article/details/38487475
https://blog.csdn.net/weixin_30391339/article/details/95425578?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~LandingCtr~Rate-1.queryctrv4&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~LandingCtr~Rate-1.queryctrv4&utm_relevant_index=2
http://www.daileinote.com/computer/openresty/11