Comments (3)
You can use parser.WithSkipValidDirectivesErr to skip syntax checks, as in the following code snippet: parser.NewParser(filePath, parser.WithSkipValidDirectivesErr())
from gonginx.
As a workaround I did put them in a file and included them in the config.
from gonginx.
You can use parser.WithSkipValidDirectivesErr to skip syntax checks, as in the following code snippet: parser.NewParser(filePath, parser.WithSkipValidDirectivesErr())
Shouldn't these be parsed? I mean I got issues with this and using variables in server blocks, I eventually switched to crossplane and parsed the whole nginx file then got my needed directive arguments but this would be very better as crossplane parsed whole nginx file instead of individual files.
from gonginx.
Related Issues (20)
- Painc casued by parsing config which contained lua block HOT 2
- panic: unexpected token BlockEnd (}) HOT 2
- > ${var} breaks the parser. HOT 2
- example request HOT 4
- set_by_lua_block $wocao {} not support HOT 2
- DumpConfig not print lua block content HOT 1
- is this project given up?
- Dumper does not preserve the formatting in Lua blocks.
- Dumper does not preserve the formatting in log_format
- NewParser use os.Open and how to close it HOT 3
- unquote parameters HOT 2
- got "unexpected token" with the follow nginx config file at line 45 ("text/css") HOT 1
- gonginx does not seem to catch syntax errors in `nginx.conf` HOT 11
- unknown directive 'check_status' HOT 2
- can't use custom directives HOT 1
- Adding a new location block
- panic: unknown directive '''' on line 32, column 2
- mime.types are not recognized properly
- [feature request]enhanced server object capabilities for easier access and modification of nginx configuration HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gonginx.