Skip to content

Commit 6fb93b3

Browse files
Merge pull request #197 from xavier-hernandez/develop
v1.1.33
2 parents 99ba7fe + 5d8fdf1 commit 6fb93b3

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
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.32<\/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.33<\/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
@@ -71,7 +71,7 @@ RUN chmod +x start.sh
7171
RUN mkdir -p /goaccess-logs/archives
7272

7373
VOLUME ["/opt/log"]
74-
VOLUME ["/opt/custom"]
74+
7575
EXPOSE 7880
7676
#CMD ["bash", "/goan/start.sh"]
7777
ENTRYPOINT ["tini", "--", "/goan/start.sh"]

assests/maxmind/GeoLite2-ASN.mmdb

21.8 KB
Binary file not shown.

assests/maxmind/GeoLite2-City.mmdb

3.67 MB
Binary file not shown.

assests/maxmind/GeoLite2-Country.mmdb

-34.4 KB
Binary file not shown.

resources/scripts/start.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source $(dirname "$0")/logs/ncsa_combined.sh
1010
source $(dirname "$0")/logs/nginx_access.sh
1111
source $(dirname "$0")/logs/caddy.sh
1212

13-
goan_version="GOAN v1.1.32"
13+
goan_version="GOAN v1.1.33"
1414
goan_log_path="/opt/log"
1515

1616
goaccess_ping_interval=15
@@ -81,7 +81,13 @@ elif [[ "${LOG_TYPE}" == "TRAEFIK" ]]; then
8181
elif [[ "${LOG_TYPE}" == "NCSA_COMBINED" ]]; then
8282
ncsa_combined
8383
elif [[ "${LOG_TYPE}" == "CUSTOM" ]]; then
84-
custom
84+
if [ -d "/opt/custom" ] && [ -w "/opt/custom" ]; then
85+
echo "Custom directory /opt/custom is available."
86+
custom
87+
else
88+
echo "Custom directory /opt/custom is not available. Exiting..."
89+
exit 1
90+
fi
8591
elif [[ "${LOG_TYPE}" == "NGINX_ACCESS" ]]; then
8692
nginx_access
8793
elif [[ "${LOG_TYPE}" == "CADDY_V1" ]]; then

0 commit comments

Comments
 (0)