Skip to content

Commit

Permalink
add the loadbalancers to real_ip headers
Browse files Browse the repository at this point in the history
the production and qa servers were populated with the wrong real_ip
this fix adds them to the passenger nginx config

Co-authored-by: Alicia Cozine <[email protected]>
Co-authored-by: Christina Chortaria <[email protected]>
Co-authored-by: Jane Sandberg <[email protected]>
Co-authored-by: Kevin Reiss <[email protected]>
Co-authored-by: Vickie Karasic <[email protected]>
  • Loading branch information
6 people committed Oct 3, 2024
1 parent 79cd1c7 commit bdc9ce7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions group_vars/bibdata/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ passenger_app_root: "/opt/bibdata/current/public"
passenger_app_env: "production"
passenger_extra_config: "{{ lookup('file', 'roles/bibdata/templates/nginx_extra_config') }}"
rails_app_name: "bibdata"
passenger_real_ip_from:
- 128.112.203.144
- 128.112.203.145
- 128.112.203.146
rails_app_directory: "bibdata"
rails_app_symlinks: []
rails_app_env: "production"
Expand Down
4 changes: 4 additions & 0 deletions group_vars/bibdata/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ passenger_app_root: "/opt/bibdata/current/public"
passenger_app_env: "qa"
passenger_extra_config: "{{ lookup('file', 'roles/bibdata/templates/nginx_extra_config') }}"
rails_app_name: "bibdata"
passenger_real_ip_from:
- 128.112.203.144
- 128.112.203.145
- 128.112.203.146
rails_app_directory: "bibdata"
rails_app_symlinks: []
rails_app_env: "qa"
Expand Down

0 comments on commit bdc9ce7

Please sign in to comment.