Skip to main content

OpenFunction Configuration

The openfunction plugin invokes synchronous OpenFunction endpoints with request forwarding, optional Basic credentials, and sub-path preservation. Configuration covers plugin parameters.

Parameters​

See plugin common configurations for configuration options available to all plugins.

  • function_uri

    string

    required


    URI of the synchronous OpenFunction endpoint. Wildcard route suffixes are appended to this URI. A pathless endpoint uses /; pathless support was introduced in API7 Enterprise 3.9.20 and 3.10.7, and in APISIX 3.19.0.

  • authorization

    object


    Basic authentication added to the function request.

    • service_token

      string


      Value encoded into the Basic Authorization header. It replaces any client-supplied Authorization header. When omitted, the client Authorization header is forwarded unchanged. API7 Gateway encrypts the value with AES at rest. APISIX encrypts it before etcd storage when field encryption is enabled.

  • max_req_body_size

    integer

    default: 67108864

    valid value:

    greater than or equal to 1

    Maximum request body size buffered in memory. A larger body returns 400 Bad Request. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and in APISIX 3.18.0.

  • timeout

    integer

    default: 3000

    valid value:

    greater than or equal to 100

    Function request timeout in milliseconds.

  • ssl_verify

    boolean

    default: true


    If true, verify the function endpoint TLS certificate.

  • keepalive

    boolean

    default: true


    If true, keep function connections alive for reuse.

  • keepalive_timeout

    integer

    default: 60000

    valid value:

    greater than or equal to 1000

    Idle keepalive timeout in milliseconds.

  • keepalive_pool

    integer

    default: 5

    valid value:

    greater than or equal to 1

    Maximum connections in the keepalive pool.