generated from ITwrxOrg/EZ-Bkup
added README.md, example config files, binaries, updated CHANGELOG.md
This commit is contained in:
5
example_config_files/email.toml
Normal file
5
example_config_files/email.toml
Normal file
@@ -0,0 +1,5 @@
|
||||
[server]
|
||||
hostname = "email.mydomain.org"
|
||||
starttls-port = 587
|
||||
sender-address = "maileraddress@mydomain.org"
|
||||
sender-password = "supersecretpassword"
|
||||
6
example_config_files/run_goaccess_reporter.sh
Normal file
6
example_config_files/run_goaccess_reporter.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
#the name of your compiled goaccess_reporter binary.
|
||||
goaccess_reporter_0.1.0_alpine
|
||||
|
||||
exit
|
||||
26
example_config_files/sites.toml
Normal file
26
example_config_files/sites.toml
Normal file
@@ -0,0 +1,26 @@
|
||||
#name of the site. can company name, domain, whatever makes the most sense.
|
||||
[site1]
|
||||
#webserver log location.
|
||||
log-file = "/var/www/www-logs/site1-access.log"
|
||||
#where to save the report and how to name it.
|
||||
output = "/home/myuser/.goaccess_reporter/site1-report.html"
|
||||
#append date to report name. This prevents overwriting existing reports. IDK if i even tested with "append-date = false".
|
||||
append-date = true
|
||||
#delete saved report.html after tarballing and emailing it.
|
||||
delete-after = true
|
||||
#array/seq of email addresses to send the report to.
|
||||
email-addresses = ["jack@site1.org", "jill@site1.org"]
|
||||
|
||||
[site2]
|
||||
log-file = "/var/www/www-logs/site2-access.log"
|
||||
output = "/home/myuser/.goaccess_reporter/site2.html"
|
||||
append-date = true
|
||||
delete-after = false
|
||||
email-addresses = ["john@site2.com", "jane@site2.com"]
|
||||
|
||||
[site3]
|
||||
log-file = "/var/www/www-logs/site3-access.log"
|
||||
output = "/home/myuser/.goaccess_reporter/site3-report.html"
|
||||
append-date = true
|
||||
delete-after = true
|
||||
email-addresses = ["admin@site3.org"]
|
||||
Reference in New Issue
Block a user