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

Parser for nginx #912

Open
VenutNSA opened this issue Feb 5, 2024 · 2 comments
Open

Parser for nginx #912

VenutNSA opened this issue Feb 5, 2024 · 2 comments
Labels
parser Relates to a parser

Comments

@VenutNSA
Copy link

VenutNSA commented Feb 5, 2024

Hey, everybody!

I need to process nginx.conf files, maybe someone has done this?

Or how can I add a custom parser for this type of files?

@jpreese
Copy link
Member

jpreese commented Feb 5, 2024

We've had a similar request in the past (see: #445), which talks about attempting to use crossplane's nginx parser. It doesn't look like that functionality was ever added to the upstream though.

@jpreese jpreese added the parser Relates to a parser label Feb 5, 2024
@jalseth jalseth changed the title Custom parser Parser for nginx Feb 6, 2024
@jalseth
Copy link
Member

jalseth commented Feb 6, 2024

It looks like there is an alternative library which supports parsing nginx config strings: https://pkg.go.dev/github.com/tufanbarisyildirim/[email protected]/parser#NewStringParser

@VenutNSA if you can test this library out and see if it would work for your needs we can consider adding it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser Relates to a parser
Projects
None yet
Development

No branches or pull requests

3 participants