Deploy a hello world openresty app
This commit is contained in:
parent
8a3c519a6c
commit
d077dfdcf2
@ -5,3 +5,8 @@
|
|||||||
|
|
||||||
# Install openresty from official packages
|
# Install openresty from official packages
|
||||||
include_recipe 'openresty::apt_package'
|
include_recipe 'openresty::apt_package'
|
||||||
|
|
||||||
|
openresty_site 'hello_world' do
|
||||||
|
template 'hello_world.conf.erb'
|
||||||
|
action :enable
|
||||||
|
end
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
server {
|
||||||
|
listen 80 reuseport;
|
||||||
|
location / {
|
||||||
|
default_type text/plain;
|
||||||
|
content_by_lua_block {
|
||||||
|
ngx.say("Hello World")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user