├── .gitattributes ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── signaler-un-bug.md ├── .gitignore ├── Changelog.md ├── LICENCE.md ├── README.md ├── bin ├── MySB_ChangeUserPassword ├── MySB_CreateUser ├── MySB_DeleteUser ├── MySB_GitHubRepoUpdate ├── MySB_SecurityRules ├── MySB_UpdateTools ├── MySB_UpgradeMe └── MySB_UpgradeSystem ├── ci ├── .gitlab-ci.yml ├── basic │ ├── 10-check_versions.sh │ ├── 20-check_vars.sh │ ├── 30-check_yaml.sh │ ├── 40-check_bash.sh │ ├── 50-check_php.sh │ ├── 60-check_project.sh │ ├── 70-check_python.sh │ └── 80-check_docker.sh ├── common │ ├── 00-libs.sh │ └── 999-end_script.sh └── integ │ ├── 10-check_functions.sh │ ├── funcs │ ├── funcs_Fail2Ban.sh │ ├── funcs_GetTrackersCert.sh │ ├── funcs_Install.sh │ ├── funcs_Minio.sh │ ├── funcs_MySB_CreateUser.sh │ ├── funcs_MySB_SecurityRules.sh │ ├── funcs_PeerGuardian.sh │ ├── funcs_SourcesList.sh │ └── funcs_Upgrade.sh │ └── inc │ └── global.sh ├── db ├── Blocklists.tmpl.sq3 ├── Sync.tmpl.sq3 └── Wolf.sq3 ├── docker └── .gitkeep ├── inc ├── funcs ├── funcs_by_script │ ├── funcs_Fail2Ban │ ├── funcs_GetTrackersCert.bsh │ ├── funcs_Install │ ├── funcs_Minio │ ├── funcs_MySB_CreateUser │ ├── funcs_MySB_SecurityRules │ ├── funcs_Nginx │ ├── funcs_PeerGuardian │ ├── funcs_SourcesList │ └── funcs_Upgrade ├── funcs_iptables ├── funcs_logging ├── funcs_sql ├── funcs_tools ├── includes_after ├── includes_before ├── lang │ ├── en │ │ ├── BlocklistsRTorrent.bsh.lng │ │ ├── DynamicAddressResolver.bsh.lng │ │ ├── GetTrackersCert.bsh.lng │ │ ├── Global.lng │ │ ├── Migration.bsh.lng │ │ ├── MySB.bsh.lng │ │ ├── MySB_ChangeUserPassword.lng │ │ ├── MySB_CreateUser.lng │ │ ├── MySB_DeleteUser.lng │ │ ├── MySB_GitHubRepoUpdate.lng │ │ ├── MySB_SecurityRules.lng │ │ ├── MySB_UpdateTools.lng │ │ ├── MySB_UpgradeMe.lng │ │ ├── Questions.lng │ │ └── Upgrade.lng │ └── fr │ │ ├── BlocklistsRTorrent.bsh.lng │ │ ├── DynamicAddressResolver.bsh.lng │ │ ├── GetTrackersCert.bsh.lng │ │ ├── Global.lng │ │ ├── Migration.bsh.lng │ │ ├── MySB.bsh.lng │ │ ├── MySB_ChangeUserPassword.lng │ │ ├── MySB_CreateUser.lng │ │ ├── MySB_DeleteUser.lng │ │ ├── MySB_GitHubRepoUpdate.lng │ │ ├── MySB_SecurityRules.lng │ │ ├── MySB_UpdateTools.lng │ │ ├── MySB_UpgradeMe.lng │ │ ├── Questions.lng │ │ └── Upgrade.lng ├── revisions ├── switches └── vars ├── install ├── BackupManager ├── Bind ├── Blocklists ├── CPAN ├── Cakebox ├── Certificates ├── Cron ├── DNScrypt ├── Docker ├── DownloadAll ├── Fail2Ban ├── LetsEncrypt ├── Logwatch ├── Lynis ├── Minio ├── Monitoring ├── MySB.bsh ├── MySB_CleanAll.bsh ├── MySB_Install.bsh ├── MySQL ├── NFS ├── NetData ├── NextCloud ├── Nginx ├── OpenVPN ├── PHP ├── Packages ├── PeerGuardian ├── PlexMedia ├── Portsentry ├── Postfix ├── Questions ├── Quota ├── RKHunter ├── SSH ├── Samba ├── SeedboxManager ├── ShellInABox ├── SourcesList ├── Tools ├── Tweaks ├── VSFTP ├── Webmin ├── rTorrent └── ruTorrent ├── logs └── .gitkeep ├── scripts ├── ApplyConfig.bsh ├── BlocklistsRTorrent.bsh ├── DNScrypt-proxy.bsh ├── DynamicAddressResolver.bsh ├── GetTrackersCert.bsh ├── LogServerAndQuota.bsh ├── NextCloud.bsh ├── OpenVPN-Bridge.bsh ├── PaymentReminder.bsh ├── PeerGuardian.bsh ├── PlexMediaServer.bsh └── SendMails.bsh ├── temp └── .gitkeep ├── templates ├── apt │ ├── etc.apt.apt.conf.d.99tweaks.tmpl │ ├── etc.apt.mirror.list.tmpl │ ├── experimental.pref.tmpl │ ├── stable.pref.tmpl │ ├── testing.pref.tmpl │ └── unstable.pref.tmpl ├── backupmanager │ ├── confs.bm_post.sh.tmpl │ ├── confs.bm_pre.sh.tmpl │ ├── etc.backup-manager.conf.tmpl │ ├── etc.cron.daily.backup-manager.tmpl │ └── usr.bin.backup-manager-tools.tmpl ├── bind │ ├── etc.bind.log.conf.tmpl │ ├── etc.bind.named.conf.local.tmpl │ └── etc.bind.named.conf.options.tmpl ├── cakebox │ ├── app.controllers.player.php.tmpl │ ├── config.user.tmpl │ ├── public.app.controller.AppCtrl.js.tmpl │ └── public.app.directive.webplayer.js.tmpl ├── certificates │ └── root.ca.cacert.conf.tmpl ├── cpan │ ├── root.cpan.CPAN.MyConfig.pm.tmpl │ └── root.cpan.listmodules.pl.tmpl ├── dnscrypt │ ├── allowed-ips.txt.tmpl │ ├── allowed-names.txt.tmpl │ ├── blocked-ips.txt.tmpl │ ├── blocked-names.txt.tmpl │ ├── captive-portals.txt.tmpl │ ├── cloaking-rules.txt.tmpl │ ├── dnscrypt-proxy.service.tmpl │ ├── dnscrypt-proxy.toml.tmpl │ └── forwarding-rules.txt.tmpl ├── docker │ └── supervisord.conf.tmpl ├── fail2ban │ ├── etc.fail2ban.action.d.mail-buffered.conf.tmpl │ ├── etc.fail2ban.action.d.mail-whois-lines.conf.tmpl │ ├── etc.fail2ban.action.d.mail-whois.conf.tmpl │ ├── etc.fail2ban.action.d.mail.conf.tmpl │ ├── etc.fail2ban.action.d.sendmail-buffered.conf.tmpl │ ├── etc.fail2ban.action.d.sendmail-common.local.tmpl │ ├── etc.fail2ban.action.d.sendmail-whois-lines.conf.tmpl │ ├── etc.fail2ban.action.d.sendmail-whois.conf.tmpl │ ├── etc.fail2ban.action.d.sendmail.conf.tmpl │ ├── etc.fail2ban.fail2ban.conf.tmpl │ ├── etc.fail2ban.filter.d.nextcloud.tmpl │ ├── etc.fail2ban.filter.d.nginx-auth.conf.tmpl │ ├── etc.fail2ban.filter.d.nginx-badbots.conf.tmpl │ ├── etc.fail2ban.filter.d.nginx-login.tmpl │ ├── etc.fail2ban.filter.d.nginx-req-limit.conf.tmpl │ ├── etc.fail2ban.filter.d.sshd-ddos.conf.tmpl │ └── etc.fail2ban.jail.local.tmpl ├── logrotate │ ├── etc.logrotate.d.bind.tmpl │ ├── etc.logrotate.d.fail2ban.tmpl │ ├── etc.logrotate.d.iptables.tmpl │ ├── etc.logrotate.d.mysb.tmpl │ ├── etc.logrotate.d.mysql-server.tmpl │ ├── etc.logrotate.d.nextcloud.tmpl │ ├── etc.logrotate.d.nginx.tmpl │ ├── etc.logrotate.d.pglcmd.tmpl │ ├── etc.logrotate.d.pgld.tmpl │ ├── etc.logrotate.d.samba.tmpl │ ├── etc.logrotate.d.stunnel4.tmpl │ └── etc.logrotate.d.users.tmpl ├── logwatch │ ├── etc.cron.daily.00logwatch.tmpl │ └── logwatch.conf.tmpl ├── lynis │ └── etc.lynis.default.prf.tmpl ├── minio │ ├── minio.service.tmpl │ ├── seedbox_complete.json.tmpl │ └── users_complete.json.tmpl ├── mysb │ ├── etc.mysb.config.php.tmpl │ ├── wolf.config.php.tmpl │ └── wolf.page.php.tmpl ├── mysql │ ├── Schema.sql │ ├── Table_blocklists.sql │ ├── Table_dnscrypt_config.sql │ ├── Table_lets_encrypt.sql │ ├── Table_providers_monitoring.sql │ ├── Table_repositories.sql │ ├── Table_services.sql │ ├── Table_smtp.sql │ ├── Table_system.sql │ ├── Triggers.sql │ ├── etc.mysql.debian.cnf.tmpl │ ├── etc.mysql.mariadb.conf.d.50-client.cnf.tmpl │ ├── etc.mysql.mariadb.conf.d.50-mysql-clients.cnf.tmpl │ ├── etc.mysql.mariadb.conf.d.50-mysqld_safe.cnf.tmpl │ ├── etc.mysql.mariadb.conf.d.50-server.cnf.tmpl │ ├── etc.mysql.mariadb.conf.d.99-MySB.cnf.tmpl │ ├── etc.mysql.my.cnf.tmpl │ └── mysql_default.sql ├── netdata │ ├── health_alarm_notify.conf.tmpl │ ├── netdata.conf.tmpl │ ├── usr.lib.netdata.conf.d.health.d.net.conf.tmpl │ ├── usr.lib.netdata.conf.d.python.d.mysql.conf.tmpl │ └── usr.lib.netdata.conf.d.python.d.proxysql.conf.tmpl ├── nextcloud │ ├── nextcloud.config.php.tmpl │ └── patch.20.0.1.1.OC_Helper.php.tmpl ├── nfs │ ├── etc.default.nfs-common.tmpl │ ├── etc.default.nfs-kernel-server.tmpl │ └── rpcbind.service.tmpl ├── nginx │ ├── etc.nginx.conf.d.auth_basic.tmpl │ ├── etc.nginx.conf.d.global_deny_access.tmpl │ ├── etc.nginx.conf.d.ip_restriction.tmpl │ ├── etc.nginx.conf.d.php-ssl.tmpl │ ├── etc.nginx.conf.d.php.tmpl │ ├── etc.nginx.conf.d.static_files.tmpl │ ├── etc.nginx.locations.cakebox.conf.tmpl │ ├── etc.nginx.locations.netdata.conf.tmpl │ ├── etc.nginx.locations.nextcloud.conf.tmpl │ ├── etc.nginx.locations.plexmediaserver.conf.tmpl │ ├── etc.nginx.locations.seedbox-manager.conf.tmpl │ ├── etc.nginx.locations.shellinabox.conf.tmpl │ ├── etc.nginx.locations.tautulli.conf.tmpl │ ├── etc.nginx.logs_format.tmpl │ ├── etc.nginx.mime.types.tmpl │ ├── etc.nginx.nginx.conf.tmpl │ ├── etc.nginx.proxy.cakebox.conf.tmpl │ ├── etc.nginx.proxy.netdata.conf.tmpl │ ├── etc.nginx.proxy.plexmediaserver.conf.tmpl │ ├── etc.nginx.proxy.shellinabox.conf.tmpl │ ├── etc.nginx.proxy.tautulli.conf.tmpl │ ├── etc.nginx.proxy.user.conf.tmpl │ ├── etc.nginx.rpc.user.cakebox.tmpl │ ├── etc.nginx.rpc.user.conf.tmpl │ ├── etc.nginx.rpc.user.local.tmpl │ ├── etc.nginx.site-enabled.WiP.tmpl │ ├── etc.nginx.site-enabled.cakebox.tmpl │ ├── etc.nginx.site-enabled.default.tmpl │ ├── etc.nginx.upstream.netdata.conf.tmpl │ ├── etc.nginx.upstream.php7.default.conf.tmpl │ └── etc.nginx.upstream.plexmediaserver.conf.tmpl ├── openvpn │ ├── easyrsa_vars.tmpl │ ├── openssl-easyrsa.cnf.tmpl │ ├── openvpn.client.conf.tmpl │ ├── openvpn.server.conf.tmpl │ └── openvpn.service.tmpl ├── peerguardian │ ├── etc.pgl.pglcmd.conf.tmpl │ └── usr.bin.pglcmd.tmpl ├── php │ ├── etc.php.7.3.fpm.php-fpm.conf.tmpl │ ├── etc.php.7.3.fpm.pool.d.www.conf.tmpl │ └── etc.php.7.3.php.ini.tmpl ├── plexmedia │ └── tautulli.service.tmpl ├── portsentry │ └── etc.portsentry.portsentry.conf.tmpl ├── postfix │ ├── main.conf.tmpl │ └── stunnel.conf.tmpl ├── quota │ ├── etc.default.quota.tmpl │ └── etc.warnquota.conf.tmpl ├── rkhunter │ └── etc.rkhunter.conf.tmpl ├── rtorrent │ ├── etc.init.d.rtorrent.tmpl │ ├── rTorrent_erased.sh.tmpl │ ├── rTorrent_inotify.sh.tmpl │ ├── rTorrent_tasks.sh.tmpl │ ├── rtorrent.rc.tmpl │ ├── rtorrent_finished.sh.tmpl │ ├── rtorrent_inserted_new.sh.tmpl │ ├── synchro.sh.tmpl │ └── xmlrpc2scgi.py.tmpl ├── rutorrent │ ├── access.ini.tmpl │ ├── config.php.tmpl │ ├── plugins.diskspace.action.php.tmpl │ ├── plugins.ini.tmpl │ ├── rtorrent.php.tmpl │ └── uisettings.json.tmpl ├── samba │ ├── etc.samba.smb.conf.tmpl │ ├── nmbd.service.tmpl │ └── smbd.service.tmpl ├── seedboxmanager │ ├── DownloadController.php.tmpl │ ├── FileConfiguration.php.tmpl │ ├── Utils.php.tmpl │ ├── config.ini.tmpl │ ├── index.twig.html.tmpl │ ├── kill_rtorrent.c.tmpl │ ├── kill_rtorrent.h.tmpl │ ├── main.c.tmpl │ └── start_rtorrent.c.tmpl ├── shellinabox │ └── etc.default.shellinabox.tmpl ├── tools │ └── etc.geoip.conf.tmpl ├── tweaks │ ├── MySB_SecurityRules_Init.service.tmpl │ ├── bash_aliases.tmpl │ ├── bash_profile.tmpl │ ├── bashrc.tmpl │ ├── etc.default.cpufrequtils.tmpl │ ├── etc.nanorc.tmpl │ ├── etc.rc.local.tmpl │ ├── etc.rsyslog.conf.tmpl │ ├── etc.vimrc.tmpl │ ├── profile.tmpl │ ├── timesyncd.conf.tmpl │ └── usr.sbin.policy-rc.d.tmpl └── vsftpd │ └── etc.vsftpd.conf.tmpl ├── upgrade ├── BulkChanges.bsh ├── Debian_Upgrade.bsh ├── From_v7.2-to-v7.3.bsh ├── Migration.bsh ├── MySQL.bsh └── Torrent_Parsing.bsh ├── version └── web ├── WiP.html ├── favicon.ico ├── inc ├── functions.php ├── includes_after.php ├── includes_before.php ├── languages │ ├── en │ │ ├── ApplyConfig.php │ │ ├── BlockLists_Countries.php │ │ ├── BlockLists_Usual.php │ │ ├── Buckets.php │ │ ├── ChangeEmail.php │ │ ├── ChangePassword.php │ │ ├── DNScrypt.php │ │ ├── Help_Blocklists.php │ │ ├── Help_IPrestriction.php │ │ ├── Help_Trackers.php │ │ ├── Home.php │ │ ├── ManageAddresses.php │ │ ├── OpenVPN.php │ │ ├── OptionsMySB.php │ │ ├── OptionsSystem.php │ │ ├── RentingInfo.php │ │ ├── RentingOptions.php │ │ ├── RentingPayments.php │ │ ├── SMTP.php │ │ ├── Synchronization.php │ │ ├── TrackersList.php │ │ ├── UserAdd.php │ │ ├── UserInfo.php │ │ ├── UserInfoMail.php │ │ └── UserRentingInfo.php │ ├── fr │ │ ├── ApplyConfig.php │ │ ├── BlockLists_Countries.php │ │ ├── BlockLists_Usual.php │ │ ├── Buckets.php │ │ ├── ChangeEmail.php │ │ ├── ChangePassword.php │ │ ├── DNScrypt.php │ │ ├── Help_Blocklists.php │ │ ├── Help_IPrestriction.php │ │ ├── Help_Trackers.php │ │ ├── Home.php │ │ ├── ManageAddresses.php │ │ ├── OpenVPN.php │ │ ├── OptionsMySB.php │ │ ├── OptionsSystem.php │ │ ├── RentingInfo.php │ │ ├── RentingOptions.php │ │ ├── RentingPayments.php │ │ ├── SMTP.php │ │ ├── Synchronization.php │ │ ├── TrackersList.php │ │ ├── UserAdd.php │ │ ├── UserInfo.php │ │ ├── UserInfoMail.php │ │ └── UserRentingInfo.php │ ├── global.en.php │ └── global.fr.php └── medoo.min.php ├── index.php ├── pages ├── ApplyConfig.php ├── BlockLists_Countries.php ├── BlockLists_Usual.php ├── Buckets.php ├── ChangeEmail.php ├── ChangePassword.php ├── DNScrypt.php ├── ForceAddress.php ├── Help_Blocklists.php ├── Help_IPrestriction.php ├── Help_Trackers.php ├── Home.php ├── Layout.php ├── Logout.php ├── Logs.php ├── ManageAddresses.php ├── NewUser.php ├── OpenVPN.php ├── OptionsMySB.php ├── OptionsSystem.php ├── RentingInfo.php ├── RentingOptions.php ├── RentingPayments.php ├── SMTP.php ├── Synchronization.php ├── TrackersList.php ├── UserAdd.php ├── UserInfo.php ├── UserInfoMail.php ├── UserRentingInfo.php └── rTorrent.php └── public └── themes └── MySB ├── css ├── animate.css ├── buttons.css ├── ccze.css ├── jQ-menu.css ├── mysb.css ├── screen.css ├── tooltipster-sideTip-mysb.min.css └── tooltipster.bundle.min.css ├── fonts ├── YanoneKaffeesatz-Regular.eot └── YanoneKaffeesatz-Regular.ttf ├── images ├── ajax-loader.gif ├── arrows-white.png ├── bitcoin.png ├── bullet.png ├── footer.png ├── help.png ├── invalid.png ├── logo.png ├── menu_hover.png ├── menubar.png ├── pattern.png ├── paypal.png ├── pixel.gif ├── top.png ├── toulousain79.gif ├── toulousain79_wiki.gif └── valid.png ├── js ├── SMTP_data.json ├── jMenu.js ├── jquery-dynamically-adding-form-elements.js ├── jquery.color.js ├── jquery.create_message.js ├── jquery.easing-sooper.js ├── jquery.min.js ├── jquery.sooperfish.js ├── modernizr-2.8.3.min.js ├── mysb.js ├── noty │ ├── jquery.noty.js │ ├── layouts │ │ ├── bottomCenter.js │ │ └── center.js │ ├── packaged │ │ └── jquery.noty.packaged.min.js │ ├── promise.js │ └── themes │ │ └── relax.js ├── smtp.js ├── tooltipster.bundle.min.js └── waiting.js └── netdata ├── css ├── bootstrap-3.3.7.css ├── bootstrap-slate-flat-3.3.7.css ├── bootstrap-slider-10.0.0.min.css ├── bootstrap-theme-3.3.7.min.css ├── bootstrap-toggle-2.2.2.min.css ├── c3-0.4.18.min.css └── morris-0.5.1.css ├── dashboard.css ├── dashboard.js ├── dashboard.slate.css └── lib ├── bootstrap-3.3.7.min.js ├── bootstrap-slider-10.0.0.min.js ├── bootstrap-table-1.11.0.min.js ├── bootstrap-table-export-1.11.0.min.js ├── bootstrap-toggle-2.2.2.min.js ├── clipboard-polyfill-be05dad.js ├── d3-4.12.2.min.js ├── d3pie-0.2.1-netdata-3.js ├── dygraph-c91c859.min.js ├── dygraph-smooth-plotter-c91c859.js ├── fontawesome-all-5.0.1.min.js ├── gauge-1.3.2.min.js ├── jquery-2.2.4.min.js ├── jquery.easypiechart-97b5824.min.js ├── jquery.peity-3.2.0.min.js ├── jquery.sparkline-2.1.2.min.js ├── lz-string-1.4.4.min.js ├── pako-1.0.6.min.js ├── perfect-scrollbar-0.6.15.min.js └── tableExport-1.6.0.min.js /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report a bug 3 | about: Create a report to help me improve the project 4 | title: "[BUG] " 5 | labels: bug 6 | assignees: toulousain79 7 | 8 | --- 9 | 10 | ## Simple description of the problem 11 | 12 | A clear and concise description of the problem you encounter. 13 | 14 | ## Reproduce 15 | 16 | Steps to reproduce the problem: 17 | 18 | 1. '...' 19 | 2. '....' 20 | '....' 21 | 22 | ## Predictable behavior 23 | 24 | A clear and concise description of what you expected. 25 | 26 | ## Screenshot 27 | 28 | If possible, add screenshots to explain your problem. 29 | 30 | ## Logs 31 | 32 | If possible, add logs, those located in **/opt/MySB/logs**. 33 | 34 | ## Hardware and environment 35 | 36 | - Provider: _[ex: KimSufi, SoYouStart, ...]_ 37 | - Server type: _[ex: VPS, Dédié, ...]_ 38 | - MySB version: _[ex: v5.3, v5.4 ...]_ 39 | - Kernel version: _(uname -a)_ 40 | - Hardware: _(CPU, RAM, HDD, Raid, ...)_ 41 | 42 | ## Additional context 43 | 44 | If necessary, add another context concerning the problem here. 45 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/signaler-un-bug.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Signaler un bug 3 | about: Créer un rapport pour m'aider à améliorer le projet 4 | title: "[BUG] " 5 | labels: bug 6 | assignees: toulousain79 7 | 8 | --- 9 | 10 | ## Description simple du problème 11 | 12 | Une description claire et concise du problème que tu rencontres. 13 | 14 | ## Reproduction du problème 15 | 16 | Étapes pour reproduire le problème: 17 | 18 | 1. '...' 19 | 2. '....' 20 | '....' 21 | 22 | ## Comportement prévisible 23 | 24 | Une description claire et concise de ce à quoi tu t'attendais. 25 | 26 | ## Captures d'écran 27 | 28 | Si possible, ajoutes des captures d'écran pour expliquer ton problème. 29 | 30 | ## Logs 31 | 32 | Si possible, ajoutes des logs, ceux se trouvant dans **/opt/MySB/logs**. 33 | 34 | ## Matériel et environnement 35 | 36 | - Hébergeur: _[ex: KimSufi, SoYouStart, ...]_ 37 | - Type de serveur: _[ex: VPS, Dédié, ...]_ 38 | - Version de MySB: _[ex: v5.3, v5.4 ...]_ 39 | - Version du noyau: _(uname -a)_ 40 | - Matériel: _(CPU, RAM, HDD, Raid, ...)_ 41 | 42 | ## Contexte supplémentaire 43 | 44 | Si nécessaire, ajoutes un autre contexte concernant le problème ici. 45 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | sources/ 2 | .bfg/ 3 | .etc/ 4 | .root/ 5 | .vscode/ 6 | thumbs.db 7 | .DS_Store 8 | TODO.md 9 | -------------------------------------------------------------------------------- /LICENCE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 toulousain79 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ci/basic/80-check_docker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | nReturn=${nReturn} 26 | 27 | # echo && echo -e "${CBLUE}*** Check Docker ***${CEND}" 28 | 29 | export nReturn 30 | 31 | ##################### LAST LINE ###################################### 32 | -------------------------------------------------------------------------------- /ci/common/999-end_script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | nReturn=${nReturn} 26 | 27 | echo 28 | case "${nReturn}" in 29 | 0) return "${nReturn}" ;; 30 | *) exit "${nReturn}" ;; 31 | esac 32 | 33 | ##################### LAST LINE ###################################### 34 | -------------------------------------------------------------------------------- /ci/integ/funcs/funcs_GetTrackersCert.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | nReturn=${nReturn} 26 | 27 | export nReturn 28 | 29 | ##################### LAST LINE ###################################### 30 | -------------------------------------------------------------------------------- /ci/integ/funcs/funcs_MySB_CreateUser.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | nReturn=${nReturn} 26 | 27 | export nReturn 28 | 29 | ##################### LAST LINE ###################################### 30 | -------------------------------------------------------------------------------- /ci/integ/funcs/funcs_MySB_SecurityRules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | nReturn=${nReturn} 26 | 27 | export nReturn 28 | 29 | ##################### LAST LINE ###################################### 30 | -------------------------------------------------------------------------------- /ci/integ/funcs/funcs_PeerGuardian.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | nReturn=${nReturn} 26 | 27 | export nReturn 28 | 29 | ##################### LAST LINE ###################################### 30 | -------------------------------------------------------------------------------- /ci/integ/funcs/funcs_Upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | nReturn=${nReturn} 26 | 27 | export nReturn 28 | 29 | ##################### LAST LINE ###################################### 30 | -------------------------------------------------------------------------------- /db/Blocklists.tmpl.sq3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toulousain79/MySB/083101d26f80f40c6208f2f559fb3cc1a9a4e24e/db/Blocklists.tmpl.sq3 -------------------------------------------------------------------------------- /db/Sync.tmpl.sq3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toulousain79/MySB/083101d26f80f40c6208f2f559fb3cc1a9a4e24e/db/Sync.tmpl.sq3 -------------------------------------------------------------------------------- /db/Wolf.sq3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toulousain79/MySB/083101d26f80f40c6208f2f559fb3cc1a9a4e24e/db/Wolf.sq3 -------------------------------------------------------------------------------- /docker/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toulousain79/MySB/083101d26f80f40c6208f2f559fb3cc1a9a4e24e/docker/.gitkeep -------------------------------------------------------------------------------- /inc/lang/en/MySB_GitHubRepoUpdate.lng: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | GitHubRepoUpdate_CheckAccess="Verifying access to GitHub (DNS switches if necessary)" 26 | GitHubRepoUpdate_RestoreDNS="Restoring of DNScrypt-proxy configuration" 27 | 28 | export GitHubRepoUpdate_CheckAccess GitHubRepoUpdate_RestoreDNS 29 | 30 | ##################### LAST LINE ###################################### 31 | -------------------------------------------------------------------------------- /inc/lang/en/MySB_UpdateTools.lng: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | UpdateTools_Plex=("Update of Plex Media Server & Tautulli") 26 | UpdateTools_DockerTools=("Update of Docker's tools") 27 | UpdateTools_DNScrypt=("Update of DNScrypt-proxy") 28 | UpdateTools_Minio=("Update of S3's tools") 29 | 30 | export UpdateTools_Plex UpdateTools_DockerTools UpdateTools_DNScrypt UpdateTools_Minio 31 | 32 | ##################### LAST LINE ###################################### 33 | -------------------------------------------------------------------------------- /inc/lang/fr/MySB_GitHubRepoUpdate.lng: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | GitHubRepoUpdate_CheckAccess="Vérification de l'accès à GitHub (bascule des DNS si nécessaire)" 26 | GitHubRepoUpdate_RestoreDNS="Restauration de la configuration de DNScrypt-proxy" 27 | 28 | export GitHubRepoUpdate_CheckAccess GitHubRepoUpdate_RestoreDNS 29 | 30 | ##################### LAST LINE ###################################### 31 | -------------------------------------------------------------------------------- /inc/lang/fr/MySB_UpdateTools.lng: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | UpdateTools_Plex=("Mise à jour de Plex Media Server & Tautulli") 26 | UpdateTools_DockerTools=("Mise à jour des outils Docker") 27 | UpdateTools_DNScrypt=("Mise à jour de DNScrypt-proxy") 28 | UpdateTools_Minio=("Mise à jour des outils S3") 29 | 30 | export UpdateTools_Plex UpdateTools_DockerTools UpdateTools_DNScrypt UpdateTools_Minio 31 | 32 | ##################### LAST LINE ###################################### 33 | -------------------------------------------------------------------------------- /logs/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toulousain79/MySB/083101d26f80f40c6208f2f559fb3cc1a9a4e24e/logs/.gitkeep -------------------------------------------------------------------------------- /temp/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/toulousain79/MySB/083101d26f80f40c6208f2f559fb3cc1a9a4e24e/temp/.gitkeep -------------------------------------------------------------------------------- /templates/apt/etc.apt.apt.conf.d.99tweaks.tmpl: -------------------------------------------------------------------------------- 1 | //---------------------------------------------------------------------- 2 | // https://manpages.debian.org/jessie/apt/apt.conf.5.fr.html 3 | //---------------------------------------------------------------------- 4 | // Set APT package manager to not use cache, not write out docs 5 | // NOTE: leaving generated locales, copyrights in place 6 | // @see https://wiki.ubuntu.com/ReducingDiskFootprint#Drop_unnecessary_files 7 | // ---------------------------------------------------------------------- 8 | 9 | APT { 10 | Clean-Installed "true"; 11 | 12 | # Don't install Suggests or Recommends. 13 | Install-Recommends "false"; 14 | Install-Suggests "false"; 15 | 16 | Ignore { 17 | "gpg-pubkey"; 18 | } 19 | 20 | Acquire { 21 | ## https://hub.docker.com/r/dockershelf/debian/ 22 | # If there's a network error, retry up to 3 times. 23 | Retries "3"; 24 | 25 | # Timeout 26 | http::Timeout "5"; 27 | ftp::Timeout "5"; 28 | 29 | # Try to download deltas called PDiffs for indexes (like Packages files) 30 | # instead of downloading whole ones. 31 | //Pdiffs "false"; 32 | 33 | # Don't download translations. 34 | //Languages "none"; 35 | 36 | # Prefer download of gzipped indexes. 37 | //CompressionTypes::Order { "gz"; "bz2"; }; 38 | 39 | # Keep indexes gzipped. 40 | GzipIndexes "true"; 41 | 42 | # Force IPv4 43 | ForceIPv4 "true"; 44 | 45 | # Insecure repositories 46 | Check-Valid-Until "false"; 47 | AllowInsecureRepositories "true"; 48 | AllowDowngradeToInsecureRepositories "true"; 49 | https::Verify-Peer "false"; 50 | https::Verify-Host "false"; 51 | }; 52 | 53 | AutoRemove { 54 | # Remove suggested and recommended packages on autoremove. 55 | RecommendsImportant "true"; 56 | 57 | # https://aptitude.alioth.debian.org/doc/en/ch02s05s05.html#configApt-AutoRemove-SuggestsImportant 58 | SuggestsImportant "true"; 59 | }; 60 | 61 | Get { 62 | //Assume-Yes "true"; 63 | //Download-Only "false"; 64 | //Show-Upgraded "true"; 65 | //Ignore-Missing "false"; 66 | //Compile "false"; 67 | AllowUnauthenticated "true"; 68 | //Fix-Broken "true"; 69 | # DEPRECATED 70 | //force-yes "false"; 71 | }; 72 | 73 | //CmdLine { 74 | // Assume-Yes "true"; 75 | //}; 76 | 77 | //Periodic { 78 | // Update-Package-Lists "1"; 79 | // Download-Upgradeable-Packages "0"; 80 | // AutocleanInterval "0"; 81 | // MaxAge "5"; 82 | //}; 83 | }; 84 | 85 | DPKG { 86 | options { 87 | "--force-confold"; 88 | }; 89 | } 90 | -------------------------------------------------------------------------------- /templates/apt/etc.apt.mirror.list.tmpl: -------------------------------------------------------------------------------- 1 | ############# config ################## 2 | set base_path /var/spool/apt-mirror 3 | set mirror_path $base_path/mirror 4 | set skel_path $base_path/skel 5 | set var_path $base_path/var 6 | set cleanscript $var_path/clean.sh 7 | set postmirror_script $var_path/postmirror.sh 8 | set run_postmirror 1 9 | set defaultarch 10 | set nthreads 20 11 | set limit_rate 100m 12 | set auth_no_challenge 0 13 | set no_check_certificate 1 14 | set unlink 0 15 | set _contents 1 16 | set _autoclean 0 17 | set _tilde 0 18 | set use_proxy off 19 | #set http_proxy 20 | #set https_proxy 21 | #set proxy_user 22 | #set proxy_password 23 | ############# end config ############## 24 | -------------------------------------------------------------------------------- /templates/apt/experimental.pref.tmpl: -------------------------------------------------------------------------------- 1 | # 0 < P < 100: causes a version to be installed only if there is no 2 | # installed version of the package 3 | 4 | Package: * 5 | Pin: release a=experimental 6 | Pin-Priority: 1 7 | -------------------------------------------------------------------------------- /templates/apt/stable.pref.tmpl: -------------------------------------------------------------------------------- 1 | # 500 <= P < 990: causes a version to be installed unless there is a 2 | # version available belonging to the target release or the installed 3 | # version is more recent 4 | 5 | Package: * 6 | Pin: release a=stable 7 | Pin-Priority: 900 8 | -------------------------------------------------------------------------------- /templates/apt/testing.pref.tmpl: -------------------------------------------------------------------------------- 1 | # 100 <= P < 500: causes a version to be installed unless there is a 2 | # version available belonging to some other distribution or the installed 3 | # version is more recent 4 | 5 | Package: * 6 | Pin: release a=testing 7 | Pin-Priority: 400 8 | -------------------------------------------------------------------------------- /templates/apt/unstable.pref.tmpl: -------------------------------------------------------------------------------- 1 | # 0 < P < 100: causes a version to be installed only if there is no 2 | # installed version of the package 3 | 4 | Package: * 5 | Pin: release a=unstable 6 | Pin-Priority: 50 7 | -------------------------------------------------------------------------------- /templates/backupmanager/confs.bm_post.sh.tmpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | systemctl start cron 26 | 27 | ##################### LAST LINE ###################################### 28 | -------------------------------------------------------------------------------- /templates/backupmanager/confs.bm_pre.sh.tmpl: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------- 3 | # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ 4 | # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\\/////////\\\_ 5 | # _\/\\\//\\\____/\\\//\\\____/\\\__/\\\__\//\\\______\///__\/\\\_______\/\\\_ 6 | # _\/\\\\///\\\/\\\/_\/\\\___\//\\\/\\\____\////\\\_________\/\\\\\\\\\\\\\\__ 7 | # _\/\\\__\///\\\/___\/\\\____\//\\\\\________\////\\\______\/\\\/////////\\\_ 8 | # _\/\\\____\///_____\/\\\_____\//\\\____________\////\\\___\/\\\_______\/\\\_ 9 | # _\/\\\_____________\/\\\__/\\_/\\\______/\\\______\//\\\__\/\\\_______\/\\\_ 10 | # _\/\\\_____________\/\\\_\//\\\\/______\///\\\\\\\\\\\/___\/\\\\\\\\\\\\\/__ 11 | # _\///______________\///___\////__________\///////////_____\/////////////_____ 12 | # By toulousain79 ---> https://github.com/toulousain79/ 13 | # 14 | ###################################################################### 15 | # 16 | # Copyright (c) 2013 toulousain79 (https://github.com/toulousain79/) 17 | # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 18 | # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | # --> Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 22 | # 23 | ##################### FIRST LINE ##################################### 24 | 25 | systemctl stop cron 26 | 27 | ##################### LAST LINE ###################################### 28 | -------------------------------------------------------------------------------- /templates/backupmanager/etc.cron.daily.backup-manager.tmpl: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # cron script for backup-manager 3 | test -x /usr/sbin/backup-manager || exit 0 4 | /usr/sbin/backup-manager -c /etc/MySB/BM_MySB.conf 5 | -------------------------------------------------------------------------------- /templates/bind/etc.bind.log.conf.tmpl: -------------------------------------------------------------------------------- 1 | logging { 2 | channel "client" { 3 | file "/var/log/bind/client.log" versions 0 size 20m; 4 | severity notice; 5 | print-time yes; 6 | print-category yes; 7 | print-severity yes; 8 | }; 9 | category client { "client"; }; 10 | 11 | channel "config" { 12 | file "/var/log/bind/config.log" versions 0 size 20m; 13 | severity notice; 14 | print-time yes; 15 | print-category yes; 16 | print-severity yes; 17 | }; 18 | category config { "config"; }; 19 | 20 | channel "default" { 21 | file "/var/log/bind/default.log" versions 0 size 20m; 22 | severity notice; 23 | print-time yes; 24 | print-category yes; 25 | print-severity yes; 26 | }; 27 | category default { "default"; }; 28 | 29 | channel "dnssec" { 30 | file "/var/log/bind/dnssec.log" versions 0 size 20m; 31 | severity notice; 32 | print-time yes; 33 | print-category yes; 34 | print-severity yes; 35 | }; 36 | category dnssec { "dnssec"; }; 37 | 38 | channel "general" { 39 | file "/var/log/bind/general.log" versions 0 size 20m; 40 | severity notice; 41 | print-time yes; 42 | print-category yes; 43 | print-severity yes; 44 | }; 45 | category general { "general"; }; 46 | 47 | channel "security" { 48 | file "/var/log/bind/security.log" versions 0 size 20m; 49 | severity notice; 50 | print-time yes; 51 | print-category yes; 52 | print-severity yes; 53 | }; 54 | category security { "security"; }; 55 | 56 | channel "queries" { 57 | file "/var/log/bind/queries.log" versions 0 size 20m; 58 | severity notice; 59 | print-time yes; 60 | print-category yes; 61 | print-severity yes; 62 | }; 63 | category queries { "queries"; }; 64 | }; 65 | -------------------------------------------------------------------------------- /templates/bind/etc.bind.named.conf.local.tmpl: -------------------------------------------------------------------------------- 1 | // 2 | // Do any local configuration here 3 | // 4 | 5 | // Consider adding the 1918 zones here, if they are not used in your 6 | // organization 7 | 8 | include "/etc/bind/zones.rfc1918"; 9 | include "/etc/bind/rndc.key"; 10 | include "/etc/bind/bind.keys"; 11 | include "/etc/bind/MySB.zones.blacklists"; 12 | -------------------------------------------------------------------------------- /templates/bind/etc.bind.named.conf.options.tmpl: -------------------------------------------------------------------------------- 1 | options { 2 | directory "/var/cache/bind"; 3 | managed-keys-directory "/var/cache/bind"; 4 | auth-nxdomain no; # conform to RFC1035 5 | listen-on { 127.0.0.1; 10.0.0.1; 10.0.1.1; 10.0.2.1; }; 6 | listen-on-v6 { none; }; 7 | allow-query { any; }; 8 | transfer-source ; 9 | notify-source ; 10 | version "MySB DNS server"; 11 | 12 | // If there is a firewall between you and nameservers you want 13 | // to talk to, you may need to fix the firewall to allow multiple 14 | // ports to talk. See http://www.kb.cert.org/vuls/id/800113 15 | 16 | // If your ISP provided one or more IP addresses for stable 17 | // nameservers, you probably want to use them as forwarders. 18 | // Uncomment the following block, and insert the addresses replacing 19 | // the all-0's placeholder. 20 | forwarders { }; 21 | forward only; 22 | 23 | //======================================================================== 24 | // If BIND logs error messages about the root key being expired, 25 | // you will need to update your keys. See https://www.isc.org/bind-keys 26 | //======================================================================== 27 | dnssec-enable yes; 28 | dnssec-validation yes; 29 | }; 30 | -------------------------------------------------------------------------------- /templates/cakebox/app.controllers.player.php.tmpl: -------------------------------------------------------------------------------- 1 | get("/api/player", __NAMESPACE__ . "\\get_infos"); 15 | 16 | 17 | /** 18 | * Get player configuration 19 | * 20 | * @param Application $app Silex Application 21 | * 22 | * @return JsonResponse Object containing player informations 23 | */ 24 | function get_infos(Application $app) { 25 | 26 | if ($app["rights.canPlayMedia"] == false) { 27 | $app->abort(403, "This user doesn't have the rights to retrieve player informations"); 28 | } 29 | 30 | $settings = []; 31 | $settings["default_type"] = strtolower($app["player.default_type"]); 32 | $settings["available_types"] = [ 33 | 'html5'=> ['name'=> "HTML 5 Web Player", "type"=> "html5"], 34 | 'vlc' => ['name'=> "VLC Web Player", "type" => "vlc"], 35 | 'divx' => ['name'=> "DivX Web Player", "type" => "divx"] 36 | ]; 37 | $settings["auto_play"] = $app["player.auto_play"]; 38 | 39 | return $app->json($settings); 40 | } 41 | -------------------------------------------------------------------------------- /templates/cakebox/config.user.tmpl: -------------------------------------------------------------------------------- 1 | /rtorrent/"; // Root directory Cakebox have to scan 7 | $app["cakebox.access"] = "//"; // Alias used in web server for direct access 8 | $app["cakebox.language"] = ""; //Language of Cakebox. Could be : fr, en 9 | 10 | /* 11 | Directory settings 12 | */ 13 | $app["directory.ignoreDotFiles"] = true; 14 | $app["directory.ignore"] = "/watch|torrents|incomplete|config.d/"; // Regex for files exclusion. For exemple : "/(\.nfo|\.test)$/" 15 | 16 | /* 17 | Web player settings 18 | */ 19 | $app["player.default_type"] = "html5"; // html5 or vlc 20 | $app["player.auto_play"] = "false"; 21 | 22 | /* 23 | User rights 24 | */ 25 | $app["rights.canPlayMedia"] = true; 26 | $app["rights.canDownloadFile"] = true; 27 | $app["rights.canArchiveDirectory"] = false; 28 | $app["rights.canDelete"] = false; 29 | 30 | /* 31 | Betaseries account 32 | NB: Ask API key here http://www.betaseries.com/api/ 33 | */ 34 | $app["bs.login"] = ""; 35 | $app["bs.passwd"] = ""; 36 | $app["bs.apikey"] = ""; 37 | -------------------------------------------------------------------------------- /templates/cakebox/public.app.controller.AppCtrl.js.tmpl: -------------------------------------------------------------------------------- 1 | app.controller('AppCtrl', function($scope, $http, $location, $translate, Rights, App) { 2 | 3 | $scope.search = 4 | { 5 | text: "" 6 | }; 7 | $scope.sortOptions = 8 | { 9 | sortBy: "", 10 | reverse: false 11 | }; 12 | 13 | $scope.rights = Rights.get(); 14 | 15 | $scope.app = App.get(null, function(data) { 16 | $translate.use(data.language); 17 | 18 | if (data.version.local != data.version.remote) 19 | alertify.log("Cakebox-light " + data.version.remote + $translate.instant('NOTIFICATIONS.AVAILABLE'), "success", 10000); 20 | }); 21 | 22 | $scope.$on('$locationChangeSuccess',function(event, newurl, oldurl) { 23 | $scope.previouspage = oldurl; 24 | }); 25 | 26 | $scope.copyText = function(data) { 27 | return $location.protocol() + "://" + $location.host() + ":" + data.access; 28 | } 29 | 30 | $scope.copyfileinfo = function() { 31 | alertify.log($translate.instant('NOTIFICATIONS.LINK_COPY') , "success", 10000); 32 | } 33 | }); 34 | -------------------------------------------------------------------------------- /templates/cakebox/public.app.directive.webplayer.js.tmpl: -------------------------------------------------------------------------------- 1 | app.directive('webplayer', ["$location", 2 | function ($location) { 3 | return { 4 | restrict: 'E', 5 | replace: true, 6 | scope: { 7 | player: '@', 8 | url: '@', 9 | mimetype: '@', 10 | autoplay: '@' 11 | }, 12 | template: "
", 13 | link: function (scope, element, attrs) { 14 | var $_current = element; 15 | 16 | var action = function(data) { 17 | if (data.url) { 18 | scope.url = $location.protocol() + "://" + $location.host() + ':' + data.url; 19 | 20 | var $_clone = element.clone(), 21 | content = ''; 22 | 23 | if (scope.player == "html5") { 24 | content = ''; 25 | } 26 | else if (scope.player == "divx") { 27 | content = ''; 28 | content += ''; 29 | content += ''; 30 | content += ''; 31 | content += ''; 32 | content += ''; 33 | } 34 | else if (scope.player == "vlc") { 35 | content = ''; 36 | } 37 | 38 | $_current.replaceWith($_clone.html(content)); 39 | $_current = $_clone; 40 | } 41 | } 42 | 43 | scope.$watch(function () { 44 | return {'player': attrs.player, 'url': attrs.url}; 45 | }, action, true); 46 | } 47 | } 48 | } 49 | ]); 50 | -------------------------------------------------------------------------------- /templates/cpan/root.cpan.listmodules.pl.tmpl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | use ExtUtils::Installed; 3 | my $inst = ExtUtils::Installed->new(); 4 | my @modules = $inst->modules(); 5 | foreach $module (@modules){ 6 | print $module . "\n"; 7 | } 8 | -------------------------------------------------------------------------------- /templates/dnscrypt/allowed-ips.txt.tmpl: -------------------------------------------------------------------------------- 1 | ############################## 2 | # Allowed IPs List # 3 | ############################## 4 | 5 | #192.168.0.* 6 | #fe80:53:* # IPv6 prefix example 7 | #81.169.145.105 8 | -------------------------------------------------------------------------------- /templates/dnscrypt/allowed-names.txt.tmpl: -------------------------------------------------------------------------------- 1 | 2 | ########################### 3 | # Whitelist # 4 | ########################### 5 | 6 | ## Rules for name-based query whitelisting, one per line 7 | ## 8 | ## Example of valid patterns: 9 | ## 10 | ## ads.* | matches anything with an "ads." prefix 11 | ## *.example.com | matches example.com and all names within that zone such as www.example.com 12 | ## example.com | identical to the above 13 | ## =example.com | whitelists example.com but not *.example.com 14 | ## *sex* | matches any name containing that substring 15 | ## ads[0-9]* | matches "ads" followed by one or more digits 16 | ## ads*.example* | *, ? and [] can be used anywhere, but prefixes/suffixes are faster 17 | 18 | #### MySB - Trackers allowed 19 | -------------------------------------------------------------------------------- /templates/dnscrypt/blocked-ips.txt.tmpl: -------------------------------------------------------------------------------- 1 | ############################## 2 | # IP blocklist # 3 | ############################## 4 | 5 | ## Rules for IP-based response blocking 6 | ## 7 | ## Sample feeds of suspect IP addresses: 8 | ## - https://github.com/stamparm/ipsum 9 | ## - https://github.com/tg12/bad_packets_blocklist 10 | ## - https://isc.sans.edu/block.txt 11 | ## - https://block.energized.pro/extensions/ips/formats/list.txt 12 | ## - https://www.iblocklist.com/lists 13 | -------------------------------------------------------------------------------- /templates/dnscrypt/blocked-names.txt.tmpl: -------------------------------------------------------------------------------- 1 | 2 | ########################### 3 | # Blacklist # 4 | ########################### 5 | 6 | ## Rules for name-based query blocking, one per line 7 | ## 8 | ## Example of valid patterns: 9 | ## 10 | ## ads.* | matches anything with an "ads." prefix 11 | ## *.example.com | matches example.com and all names within that zone such as www.example.com 12 | ## example.com | identical to the above 13 | ## =example.com | block example.com but not *.example.com 14 | ## *sex* | matches any name containing that substring 15 | ## ads[0-9]* | matches "ads" followed by one or more digits 16 | ## ads*.example* | *, ? and [] can be used anywhere, but prefixes/suffixes are faster 17 | 18 | #### MySB - Blacklisted domains (ex: inactive trackers) 19 | -------------------------------------------------------------------------------- /templates/dnscrypt/captive-portals.txt.tmpl: -------------------------------------------------------------------------------- 1 | ########################################### 2 | # Captive portal test names # 3 | ########################################### 4 | 5 | ## Some operating systems send queries to these names after a network change, 6 | ## in order to check if connectivity beyond the router is possible without 7 | ## going through a captive portal. 8 | ## 9 | ## This is a list of hard-coded IP addresses that will be returned when queries 10 | ## for these names are received, even before the operating system an interface 11 | ## as usable for reaching the Internet. 12 | ## 13 | ## Note that IPv6 addresses don't need to be specified within brackets, 14 | ## as there are no port numbers. 15 | -------------------------------------------------------------------------------- /templates/dnscrypt/cloaking-rules.txt.tmpl: -------------------------------------------------------------------------------- 1 | ################################ 2 | # Cloaking rules # 3 | ################################ 4 | 5 | # The following example rules force "safe" (without adult content) search 6 | # results from Google, Bing and YouTube. 7 | # 8 | # This has to be enabled with the `cloaking_rules` parameter in the main 9 | # configuration file 10 | 11 | localhost 127.0.0.1 12 | -------------------------------------------------------------------------------- /templates/dnscrypt/dnscrypt-proxy.service.tmpl: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=DNSCrypt client proxy 3 | Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki 4 | ConditionFileIsExecutable=/usr/local/bin/dnscrypt-proxy 5 | Wants=networking.service bind9.service 6 | After=network.target bind9.service 7 | Before=nss-lookup.target 8 | Requires=networking.service 9 | 10 | [Install] 11 | WantedBy=multi-user.target 12 | 13 | [Service] 14 | StartLimitInterval=5 15 | StartLimitBurst=10 16 | WorkingDirectory=/etc/dnscrypt-proxy 17 | ExecStart=/usr/local/bin/dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml -pidfile /run/dnscrypt-proxy/dnscrypt-proxy.pid 18 | ExecStartPost=/bin/bash -c "source /inc/vars; gfnSwitchDNS 'dnscrypt'" 19 | ExecStop=/bin/bash -c "source /inc/vars; gfnSwitchDNS 'bind'" 20 | Restart=always 21 | RestartSec=120 22 | NonBlocking=true 23 | ProtectKernelModules=true 24 | ProtectKernelTunables=true 25 | ProtectControlGroups=true 26 | MemoryDenyWriteExecute=true 27 | -------------------------------------------------------------------------------- /templates/dnscrypt/forwarding-rules.txt.tmpl: -------------------------------------------------------------------------------- 1 | ################################## 2 | # Forwarding rules # 3 | ################################## 4 | 5 | ## This is used to route specific domain names to specific servers. 6 | ## The general format is: 7 | ## [:port] [, [:port]...] 8 | ## IPv6 addresses can be specified by enclosing the address in square brackets. 9 | 10 | ## In order to enable this feature, the "forwarding_rules" property needs to 11 | ## be set to this file name inside the main configuration file. 12 | 13 | ## Forward queries for example.com and *.example.com to 9.9.9.9 and 8.8.8.8 14 | # example.com 9.9.9.9,8.8.8.8 15 | -------------------------------------------------------------------------------- /templates/docker/supervisord.conf.tmpl: -------------------------------------------------------------------------------- 1 | ; supervisor config file 2 | 3 | [unix_http_server] 4 | file=/var/run/supervisor.sock ; (the path to the socket file) 5 | chmod=0700 ; sockef file mode (default 0700) 6 | 7 | [supervisord] 8 | logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) 9 | pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) 10 | childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP) 11 | 12 | ; the below section must remain in the config file for RPC 13 | ; (supervisorctl/web interface) to work, additional interfaces may be 14 | ; added by defining them in separate rpcinterface: sections 15 | [rpcinterface:supervisor] 16 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 17 | 18 | [supervisorctl] 19 | serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket 20 | 21 | ; The [include] section can just contain the "files" setting. This 22 | ; setting can list multiple files (separated by whitespace or 23 | ; newlines). It can also contain wildcards. The filenames are 24 | ; interpreted as relative to this file. Included files *cannot* 25 | ; include files themselves. 26 | 27 | [include] 28 | files = /etc/supervisor/conf.d/*.conf 29 | -------------------------------------------------------------------------------- /templates/fail2ban/etc.fail2ban.action.d.mail-buffered.conf.tmpl: -------------------------------------------------------------------------------- 1 | # Fail2Ban configuration file 2 | # 3 | # Author: Cyril Jaquier 4 | # 5 | # $Revision$ 6 | # 7 | 8 | [Definition] 9 | 10 | # Option: actionstart 11 | # Notes.: command executed once at the start of Fail2Ban. 12 | # Values: CMD 13 | # 14 | # actionstart = printf %%b "Hi,\n 15 | # The jail has been started successfully.\n 16 | # Output will be buffered until lines are available.\n 17 | # Regards,\n 18 | # Fail2Ban"|mail -s "[Fail2Ban] : started" 19 | actionstart = 20 | 21 | # Option: actionstop 22 | # Notes.: command executed once at the end of Fail2Ban 23 | # Values: CMD 24 | # 25 | actionstop = if [ -f ]; then 26 | printf %%b "Hi,\n 27 | These hosts have been banned by Fail2Ban.\n 28 | `cat ` 29 | Regards,\n 30 | Fail2Ban"|mail -s "[Fail2Ban] : Summary" 31 | rm 32 | fi 33 | # printf %%b "Hi,\n 34 | # The jail has been stopped.\n 35 | # Regards,\n 36 | # Fail2Ban"|mail -s "[Fail2Ban] : stopped" 37 | 38 | # Option: actioncheck 39 | # Notes.: command executed once before each actionban command 40 | # Values: CMD 41 | # 42 | actioncheck = 43 | 44 | # Option: actionban 45 | # Notes.: command executed when banning an IP. Take care that the 46 | # command is executed with Fail2Ban user rights. 47 | # Tags: IP address 48 | # number of failures 49 | #