Skip to content

Telegram Bot that watches changes in a default nginx access.log and sends info about new accesses

Notifications You must be signed in to change notification settings

playwmadness/nginx_log_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx log bot

Telegram bot that listens for changes in a default nginx access.log file (mounted to the docker container as /access.log) and sends the info about new accesses to the specified user.

Required env vars:

IPINFO_API_KEY = ""     # ipinfo.io API key 
TELEGRAM_API_KEY = ""   # Bot API key
TELEGRAM_USER_ID = ""   # ID of the user to send log updates to
ENGINE_URL = ""         # DB URL for SQLAlchemy, can be simply an SQLite3 file like "sqlite:///access_logs.db"

Can be provided either as .env file or set in the Docker container (e.g. via -e or --env-file flags)

About

Telegram Bot that watches changes in a default nginx access.log and sends info about new accesses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published