Roots Discourse

Trellis and nginx GeoIP module

Hello I am hoping someone could help me out. I am using latest Trellis and when I provision vagrant box for local dev I am not seeing geoIP module loaded and I need it for geoIP blocking.

Could someone help me understand how I can enable it so I can provision the server and dev to use it.

Thanks.

Step 1. Customize your Nginx config files. See: https://roots.io/docs/trellis/master/nginx-includes/#include-files

Step 2. Install the GeoIP module. There are a few ways to install it. Here are 2 possible solutions:

  1. Install Nginx package from a different source. See: https://github.com/roots/trellis/blob/c86d8a042da811e89aa7fdda08159dc86f65be77/roles/nginx/defaults/main.yml#L2-L5
  2. Complie the module yourself. See: https://github.com/roots/trellis/pull/866

This topic was automatically closed after 42 days. New replies are no longer allowed.