News for hackers. Stuff that matters.
Re:Gixy: Nginx Configuration Static Analyzer by orf on Thursday May 11, 2017 @09:49AM (#14315938)
Woah this is awesome, we just ran this and found that we have this[1] issue in our config. Thanks for this! I'm going to add it to our CI runs.

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...

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.
Re:Gixy: Nginx Configuration Static Analyzer by tucaz on Thursday May 11, 2017 @10:21AM (#14316182)
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.
Re:Gixy: Nginx Configuration Static Analyzer by orf on Thursday May 11, 2017 @10:23AM (#14316202)
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