This commit is contained in:
Daniel Mason 2024-04-07 11:10:31 +12:00
parent 790fa31ba5
commit 8d38523ae6
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -11,10 +11,9 @@ Install required packages & add to nginx config.
The GeoIP DB will be under /usr/shared/GeoIP/GeoIPv6.dat (Or GeoIP.dat for v4 only):
```shell
apt install -y libnginx-mod-http-geoip geoip-database
echo 'geoip_country /usr/share/GeoIP/GeoIP.dat;' > /etc/nginx/conf.d/geoip.conf
echo 'geoip_country /usr/share/GeoIP/GeoIPv6.dat;' > /etc/nginx/conf.d/geoip.conf
```
Add this block under the main "http" block in nginx.conf:
```shell
# /etc/nginx/nginx.conf