Skip to content

Instantly share code, notes, and snippets.

@altexy
Last active May 4, 2022 21:12
Show Gist options
  • Save altexy/8f8e08fd13cda25ca47418ab4061ce1b to your computer and use it in GitHub Desktop.
Save altexy/8f8e08fd13cda25ca47418ab4061ce1b to your computer and use it in GitHub Desktop.
FROM openresty/openresty:alpine
COPY nginx.conf /usr/local/openresty/nginx/conf
COPY test.lua /usr/local/openresty/nginx/test.lua
COPY required.lua /usr/local/openresty/lualib/required.lua
worker_processes 1;
error_log logs/error.log info;
events {
worker_connections 512;
}
http {
server {
listen 80;
location / {
content_by_lua_file test.lua;
}
}
}
return function()
ngx.say("test")
end
require"required"()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment