From 2729187b73fc6e1058762e5edca67477686d6968 Mon Sep 17 00:00:00 2001 From: Steven Eardley Date: Fri, 20 Dec 2024 11:49:53 +0000 Subject: [PATCH] update nginx for new machines --- deploy/nginx/production/doaj | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/deploy/nginx/production/doaj b/deploy/nginx/production/doaj index 2372d1248..56375fb19 100644 --- a/deploy/nginx/production/doaj +++ b/deploy/nginx/production/doaj @@ -35,29 +35,24 @@ map $http_user_agent $block_ua { ~*wget 1; ~*curl 1; } - -# the public server (deprecated, use failover) -upstream doaj_apps { - server 10.131.191.139:5050; #doaj-public-app-1 +# For public site components, try all servers +upstream doaj_apps_failover { + server 10.131.191.147:5050; #doaj-public-1 + server 10.131.191.148:5050 backup; #doaj-background-1 + server 10.131.191.149:5050 backup; #doaj-editor-1 } # Background server runs async tasks upstream doaj_bg_apps { - server 10.131.12.33:5050; #doaj-background-app-1 + server 10.131.191.148:5050; #doaj-background-app-1 } # Editor and admin site components upstream doaj_ed_failover { - server 10.131.56.133:5050; #doaj-editor-app-1 - server 10.131.12.33:5050 backup; #doaj-background-app-1 + server 10.131.191.149:5050; #doaj-editor-app-1 + server 10.131.191.148:5050 backup; #doaj-background-app-1 } -# For public site components, try all servers -upstream doaj_apps_failover { - server 10.131.191.139:5050; #doaj-public-app-1 - server 10.131.12.33:5050 backup; #doaj-background-app-1 - server 10.131.56.133:5050 backup; #doaj-editor-app-1 -} upstream doaj_index { server 10.131.191.132:9200; server 10.131.191.133:9200;