Build Nginx live traffic monitor
This commit is contained in:
parent
2da9b83907
commit
fb66a69bd7
9 changed files with 525 additions and 2 deletions
17
nginx-traffic-monitor.service
Normal file
17
nginx-traffic-monitor.service
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Nginx live traffic monitor
|
||||
After=network.target nginx.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nginx-monitor
|
||||
Group=nginx-monitor
|
||||
WorkingDirectory=/opt/nginx-live-traffic-monitor
|
||||
ExecStart=/opt/nginx-live-traffic-monitor/.venv/bin/nginx-traffic-monitor --host 127.0.0.1 --port 8080
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in a new issue