openresty / openresty/lua-nginx-module

dynamic upstream and add header

Open
#2,100 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.8k
Forks
2.1k
Avg merge
6h 1m
Merged PRs (30d)
6

Description

Dynamic upstream implemented via Lua, I want to add request headers in the upstream logic, what do I do?
image
I want to add a request header in balancer.balance() function and send the request header to the backend.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Lua balancer.balance() upstream logic described in the issue and determine how request headers are handled before the backend request is sent. Done means establishing whether this header behavior is supported and defining the project change or documentation needed to make it clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.