Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration Parse Error #307

Open
tamr opened this issue Feb 19, 2024 · 1 comment
Open

Configuration Parse Error #307

tamr opened this issue Feb 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tamr
Copy link

tamr commented Feb 19, 2024

  location = /random  {
      set_by_lua_block $random {
        return math.random(1, 100)
      }
    return 403 "Random number: $random";
   }

This block produces the following error:

Nginx Configuration Parse Error
unexpected token BlockEnd (}) on line 38, column 7

It first appeared like 2 versions ago. With the latest release I noticed the site gets disabled when entering the edit mode (yet it stays enabled on the main page). This is a bit confusing.

Upd: This block may also produce the parse error.

location = /more {
    content_by_lua ' 
         --   more lua code here
    ';
   }
@tamr tamr added the bug Something isn't working label Feb 19, 2024
@0xJacky
Copy link
Owner

0xJacky commented Feb 19, 2024

Thanks for your report, this is a gonginx issue, tufanbarisyildirim/gonginx#20. I will let you know if I fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants