conf.sh 358 B

123456789
  1. #!/bin/sh
  2. export SITE="${HTTP_HOST:-wesh.tankernn.eu}"
  3. export SITE_DIR="sites/$SITE"
  4. forbidden_uri_chars='[^a-zA-Z0-9_+\-\/\.,:]'
  5. export DIR_FILTER="s/\*$//; s,/+\./+,/,g; s,^\./,,; /\/[._][^\/]/d; /$forbidden_uri_chars/d; /index\.(md|html|txt|tpl)$/d; /(robots|sitemap)\.(txt|xml|gz)$/d; /_wesh\/?$/d; "
  6. export DIR_CLEAN=" s/\.(md|html|txt)$//; /^$/d; "