pulibrary / princeton_ansible

Ansible Roles and Playbooks for Princeton University Library
10 stars 2 forks source link

[allsearch-api] Load-balanced traffic does not show up in nginx access.log #5069

Closed sandbergja closed 1 week ago

sandbergja commented 1 week ago

What maintenance needs to be done?

Set the X-Real-IP header, so that the passenger nginx configuration does not filter out all the logs.

Level of urgency

Why is this maintenance needed?

Currently, we aren't getting any logs when users go to allsearch.princeton.edu. If you curl localhost from within the boxes, it does appear in access.log, but if it comes via the load balancer, it gets filtered out.

Acceptance criteria