geo ip
This commit is contained in:
16
docker/nginx-geoip.DockerFile
Normal file
16
docker/nginx-geoip.DockerFile
Normal file
@@ -0,0 +1,16 @@
|
||||
#tag nginx-geoip
|
||||
FROM nginx
|
||||
|
||||
COPY nginx-geoip.conf /etc/nginx/nginx.conf
|
||||
|
||||
|
||||
|
||||
RUN curl -O https://dl.miyuru.lk/geoip/dbip/country/dbip.dat.gz
|
||||
RUN mv dbip.dat.gz country.dat.gz
|
||||
RUN gzip -d country.dat.gz
|
||||
RUN cp country.dat /etc/nginx/dbip-country.dat
|
||||
|
||||
RUN curl -O https://dl.miyuru.lk/geoip/dbip/city/dbip.dat.gz
|
||||
RUN mv dbip.dat.gz city.dat.gz
|
||||
RUN gzip -d city.dat.gz
|
||||
RUN cp city.dat /etc/nginx/dbip-city.dat
|
||||
Reference in New Issue
Block a user