Skip to content

Openresty-App/sos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenResty App SOS

办公网非紧急自动诊断系统

Depend

Run

git clone https://github.com/Openresty-App/template.git
cd template
./scripts/startup.sh

Test

[root@localhost template]# curl -i http://127.0.0.1:8080/
HTTP/1.1 200 OK
Server: openresty/1.13.6.1
Date: Fri, 08 Dec 2017 22:23:13 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: keep-alive

{"message":"Hello, OpenResty"}

Lua

-- app
local ngx = require "ngx"
local cjson = require "cjson.safe"

local body = {message = "Hello, OpenResty"}
ngx.say(cjson.encode(body))

return ngx.exit(ngx.HTTP_OK)

About

办公网非紧急自动诊断系统

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published