Skip to content

Commit

Permalink
Added MaxMind database for GeoIP support
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-hernandez committed Feb 20, 2022
1 parent e5a4264 commit 651b180
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN ./configure --enable-utf8 --enable-geoip=mmdb --with-getline
RUN make
RUN make install
COPY /resources/goaccess/goaccess.conf /goaccess-config/goaccess.conf
COPY /resources/goaccess/GeoLite2-City.mmdb /goaccess-config/GeoLite2-City.mmdb

# set up nginx
RUN rm /etc/nginx/sites-enabled/default
Expand Down
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@ goaccess:
- TZ=America/New_York
```

Issues currently aware of:
- Need a default index.html page, you need to currently wait for something to parse to see the website if your logs are too big (maybe healthcheck)
- An option to not load archived logs
- GeoIP database needs to be loaded
- New proxy host will not automatically show up, container needs to be restarted
- Allow for goaccess.conf access
- and more that I don't know of I'm sure...


Thanks to https://github.com/GregYankovoy for the inspiration, and for their nginx.conf :)

This product includes GeoLite2 data created by MaxMind, available from
<a href="https://www.maxmind.com">https://www.maxmind.com</a>.
Binary file added resources/goaccess/GeoLite2-City.mmdb
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/goaccess/goaccess.conf
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ static-file .zst
# Download the GeoLite2-Country.mmdb.gz
# gunzip GeoLite2-Country.mmdb.gz
#
#geoip-database /usr/local/share/GeoIP/GeoLiteCity.dat
geoip-database /goaccess-config/GeoLite2-City.mmdb

######################################
# Persistence Options
Expand Down

0 comments on commit 651b180

Please sign in to comment.