From eb802a74510e05d41a3991b0d9a50628855f2153 Mon Sep 17 00:00:00 2001 From: Francis Kayiwa Date: Wed, 20 Sep 2023 07:59:24 -0400 Subject: [PATCH] [catalog] update production (#4302) * migrate to new postgresql server * comment out bionic vms * upgrade all vms to jammy * fix nginx warnings related to #4090 --- group_vars/orangelight/production.yml | 2 +- roles/nginxplus/files/conf/http/catalog-prod.conf | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/group_vars/orangelight/production.yml b/group_vars/orangelight/production.yml index d456d69a96..862309d36e 100644 --- a/group_vars/orangelight/production.yml +++ b/group_vars/orangelight/production.yml @@ -22,7 +22,7 @@ passenger_app_env: "production" passenger_server_name: "catalog-alma.*" postgres_admin_password: '{{ vault_postgres_admin_password }}' postgres_admin_user: "postgres" -postgres_host: "lib-postgres-prod3.princeton.edu" +postgres_host: "lib-postgres-prod1.princeton.edu" postgres_port: "5432" rails_app_env: "production" scsb_auth_key: "{{ vault_scsb_auth_key }}" diff --git a/roles/nginxplus/files/conf/http/catalog-prod.conf b/roles/nginxplus/files/conf/http/catalog-prod.conf index 57e8f09e80..9ec451e0d7 100644 --- a/roles/nginxplus/files/conf/http/catalog-prod.conf +++ b/roles/nginxplus/files/conf/http/catalog-prod.conf @@ -15,7 +15,7 @@ upstream catalog-prod { zone catalog-prod 64k; server catalog1.princeton.edu max_fails=0 resolve; server catalog2.princeton.edu max_fails=0 resolve; - # server catalog3.princeton.edu max_fails=0 resolve; + server catalog3.princeton.edu max_fails=0 resolve; sticky learn create=$upstream_cookie_catalogprodcookie lookup=$cookie_catalogprodcookie @@ -38,7 +38,8 @@ server { } server { - listen 443 ssl http2; + listen 443 ssl; + http2 on; server_name pulsearch.princeton.edu; rewrite ^/(.*)$ https://catalog.princeton.edu/$1 permanent;