apps: rename 'search' to 'duckduckgo'

just in case we want to bring in a 'real' search app like e.g.
the one in wercchan, for which see
https://github.com/kfarwell/werchan/tree/master/apps/search
This commit is contained in:
Kurt H Maier 2020-05-25 19:20:16 -07:00
parent 930d4eb9f8
commit 463eaa384e
3 changed files with 7 additions and 7 deletions

16
apps/duckduckgo/HOWTO Normal file
View file

@ -0,0 +1,16 @@
The default path for site search is /_search/. Assuming you want to keep
that default, you could enable site search like so:
mkdir -p /www/werc/sites/MYSITE/_search/_werc/
echo 'conf_enable_duckduckgo' > /www/werc/sites/MYSITE/_search/_werc/config
mkdir -p /www/werc/sites/MYSITE/_werc/lib/
cp /www/werc/apps/search/footer.inc.sample /www/werc/sites/MYSITE/_werc/lib/
Searches will POST to /_search/ and from there get redirected to Duck Duck
Go with a site:$SERVER_NAME prefix. To have the search path URL be some-
thing differen, you'll have to edit line 23 of app.rc to point to the new
path.
TODO: make it automatically work no matter which directory the app is
enabled in.