move upstreams into vhost
This commit is contained in:
parent
3d511a092d
commit
47fcd5289b
|
@ -32,6 +32,12 @@
|
||||||
- add_header Access-Control-Allow-Origin *
|
- add_header Access-Control-Allow-Origin *
|
||||||
- include snippets/blockbots.conf
|
- include snippets/blockbots.conf
|
||||||
- client_max_body_size 0
|
- 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 / {
|
- location / {
|
||||||
try_files $uri @proxy;
|
try_files $uri @proxy;
|
||||||
}
|
}
|
||||||
|
@ -138,13 +144,6 @@
|
||||||
- ssl_session_timeout 1d
|
- ssl_session_timeout 1d
|
||||||
- ssl_session_cache shared:SSL:50m
|
- ssl_session_cache shared:SSL:50m
|
||||||
- ssl_session_tickets off
|
- 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:
|
nginx_snippets:
|
||||||
blockbots:
|
blockbots:
|
||||||
- if ($http_user_agent ~* (LanaiBotmarch|lanaibot|TinyTestBot|TinyBotTestUA) ) {
|
- if ($http_user_agent ~* (LanaiBotmarch|lanaibot|TinyTestBot|TinyBotTestUA) ) {
|
||||||
|
|
Loading…
Reference in New Issue