Bash scripts to facilitate creation of web pages, sites, applications. https://keybored.co
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.5 KiB

export config_version="0.1"
#init server configs
export ssh_port=""
export swap_size="1024" #default 1G
export core_software="apt-transport-https lsb-release ca-certificates curl zip gnupg ufw"
export knotdns_source="https://deb.knot-dns.cz/knot-latest/README.txt"
export php_source="https://packages.sury.org/php/README.txt"
export db_default="psql"
export no_dns=false
export no_php=false
#log dirs
export log_dir="/var/log/mkbrd"
export mkbrd_log="${log_dir}/mkbrd.log"
export backup_log="${log_dir}/backup.log"
export incremental_backup_log="${log_dir}/backup_incremental.log"
export upgrade_log="${log_dir}/upgrade.log"
export bashblocker_log="${log_dir}/bashblocker.log"
export ddns_log="${log_dir}/ddns_notifier.log"
##for externalIP Checks
export ip_service="https://i.kbrd.co/ip"
##dynamic DNS - authoratative details
#Generate a TSIG key using keymgr (https://www.knot-dns.cz/docs/2.9/html/man_keymgr.html)
export knot_key="" #TSIG key must be in the format [alg:]name:key
export ddns_authns="" #the DNS server authorized to make dynamic DNS updates
export ddns_domain="" #works best when it is just one FQDN and other zones refer to it via CNAME records
export ddns_zone="" #see above. should be zone owner
export ddns_ip_log="/var/log/ddns_ips.log"
##common email notification settings
export notify_from=""
export notify_to=""
##smtp email settings
export smtp_enable="false"
export smtp_host=""
export smtp_user=""
export smtp_pass=""
##for nginx manipulation
export webroot="/var/www/"
export nginx_dir="/etc/nginx/sites-available/"
##bashblocker configs
export nginx_access="/var/log/nginx/"
export nginx_bin="/usr/sbin/nginx"
export scripts="contact.php info.php"
export bashblocker_max="3"
##for backup config
export backup_key=""
export backup_port="22"
export backup_user="root"
export backup_dir=""
export backup_targets="/home/ /var/www/ /opt/ /etc/ /root/"
export daily_to_keep="5"
export weekly_to_keep="4"
export monthly_to_keep="2"
export annual_to_keep="10"
export incremental_interval="120" #in minutes
export incremental_to_keep="24" #suggested to do hourly incrementals, or to run once and approximate length of time *2
export backup_servers="server1.example.org server2.example.org"
##for virus scan
export clammy_log_dir="/var/log/clammy/"
export clammy_scan_dirs="/home /var /opt"
##for upgrades
export moodle_dir=""
export moodle_ver="39"
export ampache_dir=""
export wordpress_dirs=""
export searx_dir=""
export gitea_dir=""
export friendica_dir=""
export tinytinyrss_dir=""
export civicrm_dir=""
export privatebin_dir=""