Skip to content

Update nginx-unit and allow custom nginx-unit.json config #875

@tagur87

Description

@tagur87

Desired Behavior

We are running into an issue with nginx-unit used in the netbox-docker image where we are getting an HTTP 431 due to the large header size of our k8s ingress.

Nginx-unit team is working on a fix(nginx/unit#771), but we will need this project to be updated once this is released.

We will also need to be able to add the following config entries to the nginx-unit.json file

"settings": {
    "http": {
        "large_header_buffer_size": 16384
    }
},

Contrast to Current Behavior

There does not appear to be a way to add a custom nginx-unit.json config file through an environment variable or similar. We would prefer this be an option so we don't have to roll our own image.

Required Changes

Add an option to allow a custom nginx-unit config file to be provided to a consumer of the docker image.

Discussion: Benefits and Drawbacks

This would allow others to specify unique configurations for nginx-unit in their projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions