Deploy a hello world openresty app

This commit is contained in:
Greg 2023-07-12 20:34:00 +02:00
parent 8a3c519a6c
commit d077dfdcf2
2 changed files with 14 additions and 0 deletions

View File

@ -5,3 +5,8 @@
# Install openresty from official packages
include_recipe 'openresty::apt_package'
openresty_site 'hello_world' do
template 'hello_world.conf.erb'
action :enable
end

View File

@ -0,0 +1,9 @@
server {
listen 80 reuseport;
location / {
default_type text/plain;
content_by_lua_block {
ngx.say("Hello World")
}
}
}