diff --git a/.gitignore b/.gitignore index 2700e1e..b40d914 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ scyllaridae scyllaridae.yml +!examples/*/scyllaridae.yml diff --git a/examples/cache-warmer/cmd.sh b/examples/cache-warmer/cmd.sh index b962c08..c63bf91 100755 --- a/examples/cache-warmer/cmd.sh +++ b/examples/cache-warmer/cmd.sh @@ -15,7 +15,7 @@ mygrep() { PARALLEL_EXECUTIONS=3 # Base URL of the sitemap.xml file -BASE_URL="https://$1/sitemap.xml" +BASE_URL="https://$DOMAIN/sitemap.xml" PAGE=1 while true; do @@ -54,12 +54,12 @@ done rm -f links.xml -curl -v http://drupal/api/v1/paged-content > pc.json +curl -v "https://$DOMAIN/api/v1/paged-content" > pc.json mapfile -t NIDS < <(jq -r '.[]' pc.json) for NID in "${NIDS[@]}"; do echo "Processing: $NID" - curl -s -o /dev/null "http://drupal/node/$NID/book-manifest?cache-warmer=1" + curl -s -o /dev/null "https://$DOMAIN/node/$NID/book-manifest?cache-warmer=1" done rm -f pc.json diff --git a/examples/cache-warmer/scyllaridae.yml b/examples/cache-warmer/scyllaridae.yml new file mode 100644 index 0000000..718b360 --- /dev/null +++ b/examples/cache-warmer/scyllaridae.yml @@ -0,0 +1,6 @@ +allowedMimeTypes: [ + "*" +] +cmdByMimeType: + default: + cmd: "/app/cmd.sh"