For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HUMAN DashboardHUMAN WebsiteRequest a Demo
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
  • General
    • About Enforcers
    • Support first-party HUMAN calls
    • Troubleshoot Enforcer configurations
  • Enforcer frameworks
    • Akamai ESI
    • Apache - C Module
    • ASP.NET
    • Callout Enforcer
    • Envoy Proxy
    • F5 BIGIP
    • Fastly JavaScript Compute@Edge
    • Google Cloud Platform (GCP) Callout Enforcer
    • Kong Plugin
    • NGINX - C Module
    • NGINX - LUA Module
      • What's New
      • Supported Features
      • Installing the Enforcer
      • Configuration Options
      • Upgrading the Enforcer
      • HUMAN Plugin Configuration
      • First Party Configuration
      • Enrichment
    • PHP
    • Python
    • Ruby
    • Salesforce Commerce Cloud Cartridge
LogoLogo
Login
Login
HUMAN DashboardHUMAN WebsiteRequest a Demo
On this page
  • Upgrading from versions lower than 4.x
  • Upgrading from versions above 4.x
Enforcer frameworksNGINX - LUA Module

Upgrading the Enforcer

Was this page helpful?
Previous

HUMAN Plugin Configuration

Next
Built with

Upgrading from versions lower than 4.x

As of version 4.x the config builder was added. The config builder adds default values to properties that are not implicitly specified. This change requires the user to import the configuration in the init_worker_by_lua_block and access_by_lua_block blocks inside nginx.conf:

  1. Modify init_worker_by_lua_block
    Lua

    1init_worker_by_lua_block {
    2 local pxconfig = require("px.pxconfig")
    3 require ("px.utils.pxtimer").application(pxconfig)
    4}
  2. Modify access_by_lua_block
    Lua

    1access_by_lua_block {
    2 local config = require('px.pxconfig')
    3 require("px.pxnginx").application(config)
    4}
  3. Modify header_filter_by_lua_block
    Lua

    1header_filter_by_lua_block {
    2 require("px.pxnginx").finalize()
    3}

Upgrading from versions above 4.x

To upgrade to the latest Enforcer version, re-install the Enforcer according to your OS.