ICode9

精准搜索请尝试: 精确搜索
  • 使用TypeScriptToLua+openresty-lua-types+docker-compose nginx resty.ipmatcher 集成使用2022-05-01 11:35:06

    还是基于现有的扩展开发的,主要是尝试下 主要内容 包含类型定义以及,安装扩展使用 环境准备 详细介绍可以参考 https://www.cnblogs.com/rongfengliang/p/16210941.html 类型定义 resty-ipmatcher.d.ts declare module "resty.ipmatcher" { interface IpMatcher {

  • openresty ngx_http_upstream_check_module 模块安装2022-03-29 00:34:38

    实际上测试了tengine以及其他的ngx_http_upstream_check_module发现都不好使,反而发现ngx_healthcheck_module 值得使用 构建 基于docker,复用了openresty 官方的dockerfile 构建模式,核心流程如下 clone ngx_healthcheck_module 模块,patch 布丁到openresty,执行构建 dockerfile 集

  • 3、Go自动化测试入门-使用Resty进行接口请求2022-01-26 12:06:31

    Resty 是一个简单的HTTP和REST客户端工具包,为什么不推荐使用net/http标准库呢,因为我在使用过程中发现请求https等协议还要自己写个跳过ssl证书认证,就很麻烦。而Resty可以直接连。 go get github.com/go-resty/resty/v2 使用Resty提交HTTP请求 package main import ( "fm

  • opm openresty的包管理器-中文文档2022-01-16 14:34:13

    2022年1月11日13:57:45   官方:https://opm.openresty.org/ 官方文档:https://opm.openresty.org/docs#table-of-contents 为什么建议使用opm不建议使用luarocks? http://openresty.org/cn/using-luarocks.html 官方解释:请注意!LuaRocks 并不是 OpenResty 官方推荐的装包方式。LuaRoc

  • centos7.9使用dnf包管理器安装openresty2021-10-29 10:04:23

    前言 dnf是包管理器,起到很便捷的作用 配置安装 安装dnf包管理器 }# yum install epel-release -y ]# yum install dnf dnf安装openresty dnf -y install wget wget 'https://openresty.org/package/centos/openresty.repo' mv openresty.repo /etc/yum.repos.d/ dnf check-u

  • OpenResty配置WAF功能踩坑记录2021-05-08 19:00:02

    图文教程请见: https://www.lixdx.cn/2021/05/04/nginx1/ waf的配置采用大神的github的方案:[链接 https://github.com/unixhot/waf](https://www.lixdx.cn/2021/05/04/nginx1/) 但是在部署到openresty的时候出现了如下的报错,无脑的在网上找到一篇文章,按照网上的说法配置了软

  • lua resty.http 代理请求时加号变成空格处理方法2020-12-08 15:01:06

    铺垫知识 +号在http传输中,会转为空格,所以需要额外转义,转为%2B就可以了。 现象描述 今天遇到很奇怪的现象,前端web页面传过来的时间戳是 2020-12-08T00:00:00+08:00 ,我在nginx+lua里面使用 resty.http 来转发请求的时候,发现到服务器端的时间是这样的:2020-12-08T00:00:00 08:00 , 显然

  • 【原创】大叔经验分享(78)openresty(nginx+lua)发邮件2019-08-05 21:04:43

    nginx配置 lua_package_path "/usr/local/openresty/lualib/resty/smtp/?.lua;;";lua_need_request_body on;location ^~ /alarm/mail { resolver 202.106.0.20 valid=3600s; content_by_lua_file /path/to/send_mail.lua;} 其中resolver后为dns服务器ip;   lua代码 local

  • Openresty2019-06-04 10:01:47

    ngx lua文档:https://www.nginx.com/resources/wiki/modules/lua/ openresty的七个执行阶段 set_by_lua rewrite_by_lua access_by_lua content_by_lua header_filter_by_lua body_filter_by_lua log_by_lua lua-resty-lock模块   为了解决高并发下缓存失效后引发的雪崩效应

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有