nginx: output config on failed gixy check
Sometimes the gixy output can be hard to trace back to the module configurations that were merged into that config. Also provide a hint that this can happen due to merging incompatible services on the same hostname.
This commit is contained in:
parent
e3e32b642a
commit
317689eefb
@ -1107,7 +1107,7 @@ rec {
|
||||
''
|
||||
# nginx-config-formatter has an error - https://github.com/1connect/nginx-config-formatter/issues/16
|
||||
awk -f ${awkFormatNginx} "$textPath" | sed '/^\s*$/d' > $out
|
||||
gixy $out
|
||||
gixy $out || (echo "\n\nThis can be caused by combining multiple incompatible services on the same hostname.\n\nFull merged config:\n\n"; cat $out; exit 1)
|
||||
'';
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user