Mainly add searx/searx-checker

- Add searx/searx-checker image with automatic check everyday. Result https://${HOSTNAME}/status
- Cache /static files
- Add start.sh, stop.sh, update.sh
This commit is contained in:
Dalf
2019-07-09 18:05:05 +02:00
parent 4023196f54
commit 86f1f7e22d
10 changed files with 183 additions and 46 deletions

View File

@@ -1,5 +1,5 @@
{$SEARX_PROTOCOL}{$SEARX_HOSTNAME} {
tls self_signed
tls {$SEARX_TLS}
gzip {
not /morty
}
@@ -48,8 +48,18 @@
-Pragma
}
cache {
match_path /static
status_header X-Cache-Status
default_max_age 12h
path /tmp/caddy-cache
}
rewrite /status /searx-checker/status.json
proxy / 127.0.0.1:4040 {
transparent
except /searx-checker/status.json
}
basicauth /filtron {$FILTRON_USER} {$FILTRON_PASSWORD}
@@ -57,7 +67,6 @@
without /filtron
}
proxy /morty 127.0.0.1:3000
limits {
@@ -66,4 +75,6 @@
body /morty 5MB
}
# ratelimit * /morty 150 300 hour
}