From 47fcd5289b8dc6da8f90baf3eb80c316370b33df Mon Sep 17 00:00:00 2001 From: packetcat Date: Fri, 3 Mar 2023 14:19:33 -0500 Subject: [PATCH] move upstreams into vhost --- ubuntu/molly.silvestris.systems.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ubuntu/molly.silvestris.systems.yml b/ubuntu/molly.silvestris.systems.yml index 86bf459..a181f47 100644 --- a/ubuntu/molly.silvestris.systems.yml +++ b/ubuntu/molly.silvestris.systems.yml @@ -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) ) {