Caddy: implemented load balancing for SearXNG
This commit is contained in:
parent
fba7485968
commit
f961254f7c
@ -77,7 +77,16 @@
|
|||||||
|
|
||||||
handle {
|
handle {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
reverse_proxy {{ oracle4_private_ip }}:8080 {
|
reverse_proxy {
|
||||||
|
to {{ oracle1_private_ip }}:8080
|
||||||
|
to {{ oracle2_private_ip }}:8080
|
||||||
|
to {{ oracle3_private_ip }}:8080
|
||||||
|
to {{ oracle4_private_ip }}:8080
|
||||||
|
lb_policy ip_hash
|
||||||
|
lb_try_duration 5s
|
||||||
|
lb_try_interval 1s
|
||||||
|
fail_duration 30s
|
||||||
|
max_fails 3
|
||||||
header_up X-Real-IP {remote_host}
|
header_up X-Real-IP {remote_host}
|
||||||
header_up X-Forwarded-Port {http.request.port}
|
header_up X-Forwarded-Port {http.request.port}
|
||||||
header_up X-Forwarded-Proto {http.request.scheme}
|
header_up X-Forwarded-Proto {http.request.scheme}
|
||||||
|
@ -1121,6 +1121,7 @@ engines:
|
|||||||
- name: google scholar
|
- name: google scholar
|
||||||
engine: google_scholar
|
engine: google_scholar
|
||||||
shortcut: gos
|
shortcut: gos
|
||||||
|
categories: "science"
|
||||||
|
|
||||||
- name: google play apps
|
- name: google play apps
|
||||||
engine: google_play
|
engine: google_play
|
||||||
@ -2580,7 +2581,6 @@ engines:
|
|||||||
content_xpath: //p[contains(@class,'url fsM')]/following-sibling::p
|
content_xpath: //p[contains(@class,'url fsM')]/following-sibling::p
|
||||||
first_page_num: 0
|
first_page_num: 0
|
||||||
categories: [general, web]
|
categories: [general, web]
|
||||||
disabled: true
|
|
||||||
timeout: 4.0
|
timeout: 4.0
|
||||||
about:
|
about:
|
||||||
website: https://search.goo.ne.jp
|
website: https://search.goo.ne.jp
|
||||||
@ -2589,6 +2589,7 @@ engines:
|
|||||||
require_api_key: false
|
require_api_key: false
|
||||||
results: HTML
|
results: HTML
|
||||||
language: ja
|
language: ja
|
||||||
|
disabled: true
|
||||||
|
|
||||||
- name: bt4g
|
- name: bt4g
|
||||||
engine: bt4g
|
engine: bt4g
|
||||||
|
@ -1,37 +1,10 @@
|
|||||||
<<<<<<< Updated upstream
|
|
||||||
compose:
|
|
||||||
oracle4:
|
|
||||||
- paulgo
|
|
||||||
|
|
||||||
config:
|
|
||||||
oracle4:
|
|
||||||
=======
|
|
||||||
remove:
|
|
||||||
oracle1:
|
|
||||||
- paulgo
|
|
||||||
oracle2:
|
|
||||||
- paulgo
|
|
||||||
oracle3:
|
|
||||||
- paulgo
|
|
||||||
|
|
||||||
down:
|
|
||||||
oracle1:
|
|
||||||
- paulgo
|
|
||||||
oracle2:
|
|
||||||
- paulgo
|
|
||||||
oracle3:
|
|
||||||
- paulgo
|
|
||||||
|
|
||||||
config:
|
config:
|
||||||
oracle4:
|
oracle4:
|
||||||
- caddy
|
- caddy
|
||||||
- paulgo
|
|
||||||
|
|
||||||
compose:
|
compose:
|
||||||
oracle4:
|
oracle4:
|
||||||
- caddy
|
- caddy
|
||||||
>>>>>>> Stashed changes
|
|
||||||
- paulgo
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user