mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-01 21:02:15 +00:00
Update
This commit is contained in:
parent
790fa31ba5
commit
8d38523ae6
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue