nginx-proxy-auto-docker/dump.sh
Thomas LEVEIL 19d0d33322 display error message and dump nginx config file in case nginx failed to reload
also add the `/app/dump.sh` script which dumps to the console the content of all nginx config files

    docker exec nginx-proxy /app/dump.sh
2017-02-19 00:58:21 +01:00

10 lines
No EOL
420 B
Bash
Executable file

#!/bin/bash
echo
echo "-------------------------------------------------------------------------------"
find /etc/nginx/ -type f -name '*.conf' -o -path '/etc/nginx/vhost.d/*'
echo
echo "-------------------------------------------------------------------------------"
find /etc/nginx/ -type f -name '*.conf' | while read config_file; do
echo "> $config_file"
awk '{printf "%3d %s\n", NR, $0}' "$config_file"
done