diff --git a/.gitignore b/.gitignore index 579b1b4..7f7fda2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ **/traefik/http_auth backup/ services.conf -traefik/custom/dynamic*.yaml \ No newline at end of file +traefik/custom/dynamic*.yaml +samples/custom*/*.yaml \ No newline at end of file diff --git a/samples/custom-traefik/README.md b/samples/custom-traefik/README.md new file mode 100644 index 0000000..b11a2a4 --- /dev/null +++ b/samples/custom-traefik/README.md @@ -0,0 +1,3 @@ +# Custom Traefik config files + +Place in this directory any custom Traefik config file, they will be copied to Traefik folder when running ``update-all.sh`` script. diff --git a/update-all.sh b/update-all.sh index ed2935f..519df41 100755 --- a/update-all.sh +++ b/update-all.sh @@ -82,6 +82,12 @@ for svc in $(cat services.conf | grep "\-vpn: enable" | sed -E "s/(.*)\: enable/ fi done +# Apply other arbitrary custom Traefik config files +for f in `find samples/custom-traefik -maxdepth 1 -mindepth 1 -type f | grep -E "\.yml$|\.yaml$" | sort`; do + echo "[$0] Applying custom Traefik config $f..." + cp $f traefik/custom/dynamic-$(basename $f) +done + # Detect Synology devices for Netdata compatibility if [[ $(cat services.conf | { grep -E "netdata\: enable" || true; } | wc -l) -eq 1 ]]; then if [[ $(uname -a | { grep synology || true; } | wc -l) -eq 1 ]]; then