Livrare LOT 1 - Didi
This commit is contained in:
commit
5380c3fc63
990 changed files with 133308 additions and 0 deletions
29
ai_platform/modules/web/deploy/metasearch/nginx-lb.conf
Normal file
29
ai_platform/modules/web/deploy/metasearch/nginx-lb.conf
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
worker_processes auto;
|
||||
|
||||
events {
|
||||
worker_connections 256;
|
||||
}
|
||||
|
||||
http {
|
||||
# Round-robin upstream across 3 SearXNG instances
|
||||
upstream searxng {
|
||||
server didiAI-web-searxng-1:8080;
|
||||
server didiAI-web-searxng-2:8080;
|
||||
server didiAI-web-searxng-3:8080;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
|
||||
location / {
|
||||
proxy_pass http://searxng;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_connect_timeout 10s;
|
||||
proxy_read_timeout 30s;
|
||||
proxy_next_upstream error timeout http_502 http_503;
|
||||
proxy_next_upstream_tries 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue