mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
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:
@@ -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)
|
||||
'';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user