Skip to content

Commit

Permalink
feat: serve SFTP uploads at /traffic/
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Feb 13, 2024
1 parent 855ebb7 commit ba4dfbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ services:
# public:
# - index page
# - IPL assets
# - traffic data
# - well-known URIs (security.txt, favicon.ico, etc.)
- 6999:80
# GoAccess access statistics reports
Expand All @@ -159,6 +160,8 @@ services:
- ./etc/index-page:/var/www/index-page:ro
# public IPL assets (served on :80)
- ./var/www/datasets:/var/www/datasets:ro
# traffic data
- ./var/traffic:/var/www/traffic:ro
# well-known URIs: security.txt, favicon.ico, etc. (served on :80)
- ./etc/well-known:/var/www/well-known:ro
# GoAccess access statistics reports (served on :81)
Expand Down
5 changes: 5 additions & 0 deletions etc/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ http://:80 {
root * /var/www/datasets
}

# traffic data
handle_path /traffic/* {
root * /var/www/traffic
}

# well-known URIs (security.txt, favicon.ico, etc.)
handle /robots.txt {
root * /var/www/well-known
Expand Down

0 comments on commit ba4dfbd

Please sign in to comment.