2025-09-27 15:14:13 +08:00
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
|
|
worker_rlimit_nofile 65535;
|
|
|
|
|
|
2025-09-25 13:56:33 +08:00
|
|
|
events {
|
2025-09-27 15:14:13 +08:00
|
|
|
worker_connections 1024;
|
2025-09-25 13:56:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
http {
|
2025-09-27 15:14:13 +08:00
|
|
|
include mime.types;
|
2025-09-25 13:56:33 +08:00
|
|
|
default_type application/octet-stream;
|
2025-09-27 15:14:13 +08:00
|
|
|
sendfile on;
|
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
limit_req_zone $binary_remote_addr zone=one:50m rate=20r/s;
|
|
|
|
|
|
|
|
|
|
lua_package_path 'D:/ZeroBraneStudio-1.90/lualibs/?/?.lua;D:/ZeroBraneStudio-1.90/lualibs/?.lua;;';
|
|
|
|
|
lua_package_cpath 'D:/ZeroBraneStudio-1.90/bin/clibs/?.dll;;';
|
2025-09-25 13:56:33 +08:00
|
|
|
|
|
|
|
|
server {
|
2025-09-27 15:14:13 +08:00
|
|
|
listen 9080;
|
2025-09-25 13:56:33 +08:00
|
|
|
server_name localhost;
|
|
|
|
|
default_type text/html;
|
2025-09-27 15:14:13 +08:00
|
|
|
|
|
|
|
|
location /test {
|
|
|
|
|
default_type 'text/plain';
|
|
|
|
|
content_by_lua_file 'src/test.lua';
|
2025-09-25 13:56:33 +08:00
|
|
|
}
|
|
|
|
|
}
|
2025-09-27 15:14:13 +08:00
|
|
|
}
|