https://github.com/code4craft/mockmoon
A simple lua extension based on openresty. I can mock specific file to specific url.
https://github.com/code4craft/mockmoon
Last synced: 11 months ago
JSON representation
A simple lua extension based on openresty. I can mock specific file to specific url.
- Host: GitHub
- URL: https://github.com/code4craft/mockmoon
- Owner: code4craft
- License: mit
- Created: 2015-12-23T07:20:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-23T08:15:44.000Z (about 10 years ago)
- Last Synced: 2024-12-31T04:42:32.916Z (about 1 year ago)
- Language: Lua
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mockmoon
=====
> A simple lua extension based on openresty. I can mock specific file to specific url.
## Usage:
```nginx
server {
listen 80;
server_name example.com;
rewrite_log on;
location / {
set $configFile your-config-file.json;
rewrite_by_lua_file path-to-file.lua;
proxy_pass http://backend;
}
}
```