openresty_module/conf/nginx.conf

29 lines
576 B
Nginx Configuration File
Raw Normal View History

2024-06-03 18:47:10 +02:00
daemon off;
master_process off;
error_log /dev/stdout info;
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
lua_package_path "$prefix/lua/?.lua;;";
2024-06-04 14:16:36 +02:00
lua_package_cpath '$prefix/so/?.so;;';
2024-06-03 18:47:10 +02:00
server {
listen 80;
location / {
default_type text/plain;
content_by_lua_block {
2024-06-04 14:16:36 +02:00
local clib = require("clib")
local llib = require("llib")
ngx.say( clib.func("Hello from") )
ngx.say( llib.func("Hello from") )
2024-06-03 18:47:10 +02:00
}
}
}
}