openresty / openresty/lua-nginx-module

Allow lua directives also in upstream context

Open
#896 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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.