Skip to content

Commit

Permalink
update nginx for new machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed Dec 20, 2024
1 parent d05320b commit 2729187
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions deploy/nginx/production/doaj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2729187

Please sign in to comment.