25 lines
445 B
Nginx Configuration File
25 lines
445 B
Nginx Configuration File
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;;";
|
|
server {
|
|
listen 80;
|
|
location / {
|
|
default_type text/plain;
|
|
content_by_lua_block {
|
|
local key_header = require "key_header"
|
|
key_header.greet("a Lua module")
|
|
}
|
|
}
|
|
}
|
|
}
|