mirror of
https://github.com/searxng/searxng-docker.git
synced 2025-12-22 19:50:00 +00:00
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:
15
Caddyfile
15
Caddyfile
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user