1 Star 0 Fork 2

whsp / openresty-lab

forked from 翟志军 / openresty-lab 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Openresty Lab

A lab that do many experiments with Openresty

lua code is at folder ./ansible/app/files

```
.
├── business-lua
│   ├── blog.lua
│   └── bloglist.lua
└── lua-templates
    ├── blog.html
    └── header.html
```

nginx.conf live in ./ansible/app/templates

setup dev environment

  1. install vagrant and ansible if you haven't
  2. run vagrant up to get a virtual server
  3. run ansible-playbook ./ansible/playbook.yml -i ./ansible/inventory -u vagrant -k. The password is vagrant as same as username.
  4. so, open your browser: http://192.168.8.10/blog/4444

completed:

  • setup development environment with Vagrant & Ansible
  • render html using lua-resty-template

TODO:

  • read data from redis
    1. setup redis
    2. write data into redis
    3. read it from lua script
  • add guard to speed up dev's pipline
  • WAF

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/whsp/openresty-lab.git
git@gitee.com:whsp/openresty-lab.git
whsp
openresty-lab
openresty-lab
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891