4 ms·
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_h
by orf 10y ago
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/addheaderredefinition.md https://github.com/yandex/gixy/blob/master/docs/en/plugins/a...
- tucaz 10y agoMay I ask what's your setup so your nginx conf file is part of the CI process? Any reference you could share is welcome.
- orf 10y agoWe 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
- Leynos 10y agoThat 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.