openresty / openresty/lua-nginx-module
Allow lua directives also in upstream context
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.8k
- Forks
- 2.1k
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
E.g. set_by_lua is only allowed in contexts server, server if, location, location if.
It would be very helpful if this is also possible in upstream context, e.g. for passing variables.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating how set_by_lua directives declare and validate their allowed contexts, then trace the upstream-context handling in the module. Confirm the relevant NGINX context rules and existing directive tests before deciding what needs to change. Done means the directive is accepted in upstream context and can pass variables there.
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
- Mostly clear
- Newbie friendliness
- 25/100