Last active
May 4, 2022 21:12
-
-
Save altexy/8f8e08fd13cda25ca47418ab4061ce1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| error_log logs/error.log info; | |
| events { | |
| worker_connections 512; | |
| } | |
| http { | |
| server { | |
| listen 80; | |
| location / { | |
| content_by_lua_file test.lua; | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return function() | |
| ngx.say("test") | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require"required"() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment