-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Description
Hi,
I need to include the geoip2 module.
I've tried to place it in /etc/nginx/geoip.conf
like this
load_module modules/ngx_http_geoip2_module.so;
load_module modules/ngx_stream_geoip2_module.so;
geoip_country /etc/nginx/GeoLite2-Country.mmdb {
$geoip_country_code default=US source=$remote_addr country iso_code;
}
However, I get this error:
frontend-nginx-proxy | forego | starting nginx.1 on port 32200
frontend-nginx-proxy | nginx.1 | nginx: [emerg] "load_module" directive is not allowed here in /etc/nginx/conf.d/geoip.conf:1
There's this other issue on this topic which was never resolved: #1535
Thank you for the help.
Metadata
Metadata
Assignees
Labels
No labels