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
10 lines
No EOL
420 B
Bash
Executable file
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 |