mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-22 08:15:13 +00:00
Update
This commit is contained in:
parent
790fa31ba5
commit
8d38523ae6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user