move upstreams into vhost

This commit is contained in:
packetcat 2023-03-03 14:19:33 -05:00
parent 3d511a092d
commit 47fcd5289b
1 changed files with 6 additions and 7 deletions

View File

@ -32,6 +32,12 @@
- add_header Access-Control-Allow-Origin *
- include snippets/blockbots.conf
- client_max_body_size 0
- upstream backend {
server 127.0.0.1:3000 fail_timeout=0;
}
- upstream streaming {
server 127.0.0.1:4000 fail_timeout=0;
}
- location / {
try_files $uri @proxy;
}
@ -138,13 +144,6 @@
- ssl_session_timeout 1d
- ssl_session_cache shared:SSL:50m
- ssl_session_tickets off
upstreams:
- upstream backend {
server 127.0.0.1:3000 fail_timeout=0;
}
- upstream streaming {
server 127.0.0.1:4000 fail_timeout=0;
}
nginx_snippets:
blockbots:
- if ($http_user_agent ~* (LanaiBotmarch|lanaibot|TinyTestBot|TinyBotTestUA) ) {