Skip to content
/ noticed Public

"Noticed" is backend failure notification daemon for NGINX.

Notifications You must be signed in to change notification settings

ramiil/noticed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noticed

"Noticed" is backend failure notification daemon for NGINX using Telegram.

Installation:
Just download latest version and unpack at some folder, after run sudo chmod +x noticed.py.

Usage:

./noticed.py

Requirements

  • Python 3.4 or greater
  • URLLib3
  • Certifi

Configuration
Copy noticed.conf into your nginx directory and add 'include noticed.conf' into your server{} block. Set your bot name, key and chat id in noticed.cfg.

noticed.conf (NGINX config part)

error_page 502 503 504 /noticed.html;

location /noticed.html {
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Request-URI $request_uri;

  proxy_pass http://127.0.0.1:8081/;
  error_page 502 503 504 /var/www/html/errors/servertechworks.html;
}

About

"Noticed" is backend failure notification daemon for NGINX.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published