Advanced Search
Search Results
3 total results found
Docker Deploy
Openresty
Init base_path=/data openresty_image=openresty/openresty:1.27.1.2-bookworm mkdir -p $base_path/openresty/logs mkdir -p $base_path/openresty/conf mkdir -p $base_path/openresty/conf/conf.d Pull Image docker pull $openresty_image nginx.conf docker run --rm ...
Lua Snippet
Openresty
Apache Response location /ping { default_type text/html; content_by_lua_block { ngx.say("<h1>It works!</h1>") } } Print Header location / { # 设置响应头为 JSON 格式 default_type application/json; content_by_lua_block { local...
Configurations
Openresty
File Descriptor Check Max open files cat /proc/$(pidof nginx | awk '{print $1}')/limits Add below config: [Service] LimitNOFILE=65535 systemctl daemon-reload systemctl restart openresty