set_by_lua_block invalid syntax #55

Closed
mikz opened this Issue Aug 29, 2016 · 1 comment

Comments

Projects
None yet
1 participant

mikz commented Aug 29, 2016

I'd like to report that using set_by_lua_block syntax is unrecognized.

server {
  set_by_lua_block $res { return 32 + math.cos(32) }
}

is example straight from ngx-lua documentation.

nginx plugin 0.1.3
lua plugin 1.0.91-145-162

Deadleg added a commit to Deadleg/idea-nginx that referenced this issue Sep 10, 2017

@Deadleg Deadleg closed this in 056598d Sep 10, 2017

mikz commented Oct 9, 2017

@Deadleg this still does not work when it appears in a file that is later included. So for example:

server {
  include file.conf
}
set_by_lua_block $res { return 32 + math.cos(32) }

I understand it the context can't be known, but location and other keywords work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment