awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
openresty avatar

openresty/lua-nginx-module

0
View on GitHub↗
11,764 星标·2,049 分支·C·7 次浏览openresty.org↗

Lua Nginx Module

This project is an NGINX module that embeds the Lua scripting language directly into the server environment. It functions as a request processor and response filter, enabling the execution of scripts to handle HTTP requests, generate dynamic content, and manage server behavior without external application calls.

The module provides a shared memory dictionary and cache manager, allowing data to be stored and retrieved across all active worker processes. This capability supports the collection of high-performance server metrics and the synchronization of information across concurrent processes.

The system covers a broad range of programmable server extensions, including custom HTTP middleware, dynamic request routing, and programmable access control for validating client identity. It also includes tools for intercepting and transforming response bodies and headers, modifying request URIs during the rewrite phase, and executing initialization code during server startup.

Features

  • Embedded Scripting Engines - Integrates a Lua scripting engine directly into the NGINX server to handle requests and generate dynamic content.
  • Shared Memory Configuration Stores - Provides a shared memory dictionary for synchronizing state and configuration across all active worker processes.
  • Request Path Rewriters - Provides the ability to programmatically modify request URIs and implement dynamic redirects during the server rewrite phase.
  • Lifecycle Request Handlers - Executes lifecycle-specific request handlers to rewrite URIs and control access during the NGINX request flow.
  • Server Extensions - Embeds the Lua scripting language directly into NGINX to process HTTP requests and generate responses.
  • Non-Blocking Suspension Points - Implements non-blocking suspension points using coroutines to handle I/O operations without stalling the main server thread.
  • Just-In-Time Compilers - Embeds a just-in-time compiler to execute scripts with near-native performance directly within the server process.
  • Scriptable Access Controls - Implements programmable access control that validates client identity and request metadata via Lua scripts to permit or block traffic.
  • Request Lifecycle Phases - Executes scripts at specific lifecycle points to manage rewrites, access control, and response generation.
  • Custom Middleware Implementations - Implements custom middleware to intercept request-response cycles for header transformation and custom server behavior.
  • Shared Memory Management - Manages shared memory segments to synchronize state and session data across concurrent worker processes.
  • HTTP Request Handling - Processes incoming HTTP requests and generates responses using embedded Lua scripts.
  • Request Routing - Enables dynamic request routing and URI modification using Lua scripts to implement complex dispatch logic.
  • Response Body Modifiers - Programmatically alters or transforms HTTP response bodies before they are transmitted to the client.
  • C Function Bindings - Provides a foreign function interface to map native C functions to Lua methods for direct server internal access.
  • Identity-Based Access Control - Provides programmable access control to validate client identity and metadata before traffic reaches the backend.
  • Request Context Management - Maintains a per-request memory context to pass data and state across different execution phases.
  • Server Metrics - Collects high-performance server metrics and custom request data using shared memory dictionaries.
  • Request Logging - Captures custom request details and metrics during the logging phase for system observability.
  • HTTP Response Filters - Intercepts and transforms HTTP response bodies and headers using programmable scripts.
  • Response Header Modifiers - Provides utilities for dynamically updating HTTP response headers using Lua scripts before the response is sent to the client.
  • Embedded Web Frameworks - Allows running Lua scripts within the server for custom request handling and dynamic content generation.
  • Server Initialization Hooks - Executes custom setup code and initializes shared memory through hooks that run when the server starts.
  • Scripting Language Integration - Embeds the Lua scripting language into Nginx.
  • Web Frameworks - Embeds Lua into Nginx to create a full-featured web server.

Star 历史

openresty/lua-nginx-module 的 Star 历史图表openresty/lua-nginx-module 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Lua Nginx Module 的开源替代方案

相似的开源项目,按与 Lua Nginx Module 的功能重合度排序。
  • dodyg/practical-aspnetcoredodyg 的头像

    dodyg/practical-aspnetcore

    10,382在 GitHub 上查看↗

    This project is a comprehensive sample library and implementation guide for ASP.NET Core. It provides a collection of practical examples and projects that demonstrate how to build web applications, RESTful APIs, and high-performance services. The repository focuses on a variety of architectural patterns, including the development of Minimal APIs, contract-first gRPC services, and real-time communication using WebSockets and Server-Sent Events. It includes detailed implementations for user identity and security, such as token-based authentication and CSRF protection. The codebase covers a bro

    C#asp-net-coreaspnet-coreaspnetcore
    在 GitHub 上查看↗10,382
  • revel/revelrevel 的头像

    revel/revel

    13,224在 GitHub 上查看↗

    Revel is a full-stack web framework and toolkit for building applications with the Go language. It implements a model-view-controller architecture to separate business logic from user interface rendering, providing a comprehensive system for routing, parameter binding, and session management. The project distinguishes itself with a high-productivity development environment featuring automatic code compilation and hot-reloading, which refreshes the application state and templates upon file changes without requiring manual restarts. It also employs reflection-based parameter binding to automati

    Go
    在 GitHub 上查看↗13,224
  • go-martini/martinigo-martini 的头像

    go-martini/martini

    11,603在 GitHub 上查看↗

    Martini is a web framework for the Go programming language that provides a toolkit for building web applications. It functions as a routing engine and an HTTP middleware pipeline to map network requests to specific handler functions. The framework is distinguished by its dependency injection system, which automatically resolves and provides requested service types as arguments to handler functions. This allows for the decoupling of business logic from infrastructure by matching requested types against a registry of available services. The project covers a broad range of web capabilities, inc

    Go
    在 GitHub 上查看↗11,603
  • lukeed/polkalukeed 的头像

    lukeed/polka

    5,585在 GitHub 上查看↗

    Polka is a minimalist Node.js web framework and HTTP routing engine. It provides a small-footprint server implementation designed for low overhead, mapping URL paths and HTTP methods to specific handler functions. The project utilizes a middleware-based architecture, processing requests through a sequence of functions to handle tasks such as logging, authorization, and data modification. It allows for the organization of these functions into global and path-filtered groups to control execution order. The framework covers core web capabilities including route parameter extraction, request URL

    JavaScript
    在 GitHub 上查看↗5,585
查看 Lua Nginx Module 的所有 30 个替代方案→

常见问题解答

openresty/lua-nginx-module 是做什么的?

This project is an NGINX module that embeds the Lua scripting language directly into the server environment. It functions as a request processor and response filter, enabling the execution of scripts to handle HTTP requests, generate dynamic content, and manage server behavior without external application calls.

openresty/lua-nginx-module 的主要功能有哪些?

openresty/lua-nginx-module 的主要功能包括:Embedded Scripting Engines, Shared Memory Configuration Stores, Request Path Rewriters, Lifecycle Request Handlers, Server Extensions, Non-Blocking Suspension Points, Just-In-Time Compilers, Scriptable Access Controls。

openresty/lua-nginx-module 有哪些开源替代品?

openresty/lua-nginx-module 的开源替代品包括: dodyg/practical-aspnetcore — This project is a comprehensive sample library and implementation guide for ASP.NET Core. It provides a collection of… revel/revel — Revel is a full-stack web framework and toolkit for building applications with the Go language. It implements a… go-martini/martini — Martini is a web framework for the Go programming language that provides a toolkit for building web applications. It… lukeed/polka — Polka is a minimalist Node.js web framework and HTTP routing engine. It provides a small-footprint server… nanohttpd/nanohttpd — NanoHTTPD is a lightweight, embeddable HTTP server for Java applications. It allows developers to integrate web server… ninenines/cowboy — Cowboy is a high-performance HTTP server for Erlang and OTP. It is designed to handle web traffic with low memory…