Skip to content

Commit

Permalink
Fix wahyd4#197 health check issue when basic auth enabled (wahyd4#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
wahyd4 authored Mar 8, 2022
1 parent a8db919 commit 4485fd0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ route /files/* {
reverse_proxy 127.0.0.1:8080
}

route /ping {
respond "pong"
}

root * /usr/local/www/aria2
file_server

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ VOLUME /data

EXPOSE 80 443

HEALTHCHECK --interval=1m --timeout=3s \
CMD curl -f http://localhost || exit 1
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost/ping || exit 1

CMD ["./start.sh"]
4 changes: 4 additions & 0 deletions HerokuCaddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ route /files/* {
reverse_proxy 127.0.0.1:8080
}

route /ping {
respond "pong"
}

root * /usr/local/www/aria2
file_server

Expand Down
4 changes: 4 additions & 0 deletions SecureCaddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ route /files/* {
reverse_proxy 127.0.0.1:8080
}

route /ping {
respond "pong"
}

root * /usr/local/www/aria2
file_server

Expand Down

0 comments on commit 4485fd0

Please sign in to comment.