mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-10 07:27:22 +01:00
Download GeoIP databases on startup
This commit is contained in:
parent
4974f9387b
commit
66719b9932
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,4 +2,4 @@
|
|||||||
/custom.html
|
/custom.html
|
||||||
/vendor/
|
/vendor/
|
||||||
.vscode/
|
.vscode/
|
||||||
/bin/
|
/bin/
|
||||||
|
6
Makefile
6
Makefile
@ -47,3 +47,9 @@ docker-test:
|
|||||||
|
|
||||||
docker-push: docker-test docker-login
|
docker-push: docker-test docker-login
|
||||||
docker push $(DOCKER_IMAGE)
|
docker push $(DOCKER_IMAGE)
|
||||||
|
|
||||||
|
heroku-run: geoip-download
|
||||||
|
ifndef PORT
|
||||||
|
$(error PORT must be set)
|
||||||
|
endif
|
||||||
|
echoip -f data/country.mmdb -c data/city.mmdb -a data/asn.mmdb -p -r -H CF-Connecting-IP -H X-Forwarded-For -l :$(PORT)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
build:
|
build:
|
||||||
languages:
|
languages:
|
||||||
- go
|
- go
|
||||||
pre:
|
|
||||||
- make geoip-download
|
|
||||||
run:
|
run:
|
||||||
web: echoip -f data/country.mmdb -c data/city.mmdb -a data/asn.mmdb -p -r -H CF-Connecting-IP -H X-Forwarded-For -l :$PORT
|
web: make heroku-run
|
||||||
|
Loading…
Reference in New Issue
Block a user