Re:Gixy: Nginx Configuration Static Analyzer
by Leynos on Thursday May 11, 2017 @07:34PM
(#14320389)
That explains the bother I was having trying to add CORS headers today. Not the sort of thing one really wants to get wrong, either. I shall definitely be doing this tomorrow.
May I ask what's your setup so your nginx conf file is part of the CI process? Any reference you could share is welcome.
We use gitlab, here is roughly what our stage looks like:
Run Gixy:
image: python:3
stage: code_check
cache:
paths:
- .pip-cache
script:
- pip install gixy --cache-dir=.pip-cache
- gixy nginx.conf
Edit: the add_header config option is quite confusing and I had absolutely no idea it behaved like that, I highly suggest trying this tool on your configs and seeing what it reports.
1. https://github.com/yandex/gixy/blob/master/docs/en/plugins/a...