Skip to content

Commit efe6137

Browse files
updated to v1.1.22
updated maxmind databases updated with update from @stultusphobia
1 parent b06bef0 commit efe6137

File tree

8 files changed

+18
-10
lines changed

8 files changed

+18
-10
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN make install
2323
WORKDIR /goaccess
2424
RUN cp /goaccess-temp/goaccess.tar.gz .
2525
RUN tar --strip-components=1 -xzvf goaccess.tar.gz
26-
RUN sed -i "s/GWSocket<\/a>/GWSocket<\/a> ( <a href='https:\/\/tiny.one\/xgoan'>GOAN<\/a> <span>v1.1.21<\/span> )/" /goaccess/resources/tpls.html
26+
RUN sed -i "s/GWSocket<\/a>/GWSocket<\/a> ( <a href='https:\/\/tiny.one\/xgoan'>GOAN<\/a> <span>v1.1.22<\/span> )/" /goaccess/resources/tpls.html
2727
RUN sed -i "s/bottom: 190px/bottom: 260px/" /goaccess/resources/css/app.css
2828
RUN ./configure --enable-utf8 --enable-geoip=mmdb --with-getline
2929
RUN make

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Xavier
3+
Copyright (c) 2023 Xavier
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Still in development... You might need to wait a bit if you have a large amount
1515

1616
**Dependencies:**
1717
- GoAccess version: 1.7.2
18-
- GeoLite2-City.mmdb (2023-09-09)
19-
- GeoLite2-Country.mmdb (2023-09-09)
20-
- GeoLite2-ASN.mmdb (2023-09-09)
18+
- GeoLite2-City.mmdb (2023-10-08)
19+
- GeoLite2-Country.mmdb (2023-10-08)
20+
- GeoLite2-ASN.mmdb (2023-10-08)
2121

2222
---
2323

assests/maxmind/GeoLite2-ASN.mmdb

-4.91 KB
Binary file not shown.

assests/maxmind/GeoLite2-City.mmdb

-1.75 MB
Binary file not shown.
-270 KB
Binary file not shown.

resources/scripts/logs/traefik.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,15 @@ function traefik_goaccess_config(){
3232
echo "# ${goan_version}" >> ${goan_config}
3333
echo "# GOAN_PROXY_CONFIG" >> ${goan_config}
3434
echo "######################################" >> ${goan_config}
35-
echo "time-format %T" >> ${goan_config}
36-
echo "date-format %d/%b/%Y" >> ${goan_config}
37-
echo "log-format %h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\" %Lm" >> ${goan_config}
35+
if [ "$1" -eq 2 ]; then
36+
echo "time-format ${TIME_FORMAT:-'%T'}" >> ${goan_config}
37+
echo "date-format ${DATE_FORMAT:-'%d/%b/%Y'}" >> ${goan_config}
38+
echo "log-format ${LOG_FORMAT:-'%h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\" %Lm'}" >> ${goan_config}
39+
else
40+
echo "time-format %T" >> ${goan_config}
41+
echo "date-format %d/%b/%Y" >> ${goan_config}
42+
echo "log-format %h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\" %Lm" >> ${goan_config}
43+
fi
3844
echo "port 7890" >> ${goan_config}
3945
echo "real-time-html true" >> ${goan_config}
4046
echo "output ${nginx_html}" >> ${goan_config}

resources/scripts/start.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ source $(dirname "$0")/logs/traefik.sh
88
source $(dirname "$0")/logs/custom.sh
99
source $(dirname "$0")/logs/ncsa_combined.sh
1010

11-
goan_version="GOAN v1.1.21"
11+
goan_version="GOAN v1.1.22"
1212
goan_log_path="/opt/log"
1313

1414
goaccess_ping_interval=15
@@ -75,7 +75,9 @@ if [[ -z "${LOG_TYPE}" || "${LOG_TYPE}" == "NPM" || "${LOG_TYPE}" == "NPM+R" ||
7575
npm_redirect
7676
fi
7777
elif [[ "${LOG_TYPE}" == "TRAEFIK" ]]; then
78-
traefik
78+
traefik 1
79+
elif [[ "${LOG_TYPE}" == "TRAEFIKv2" ]]; then
80+
traefik 2
7981
elif [[ "${LOG_TYPE}" == "NCSA_COMBINED" ]]; then
8082
ncsa_combined
8183
elif [[ "${LOG_TYPE}" == "CUSTOM" ]]; then

0 commit comments

Comments
 (0)