diff --git a/Server/AptPackages.txt b/Server/AptPackages.txt new file mode 100644 index 0000000..9914bcb --- /dev/null +++ b/Server/AptPackages.txt @@ -0,0 +1,14 @@ +# Misc +apt-file curl wget netcat-openbsd git htop micro nano mc + +# Archives and crypto +p7zip-full ccrypt + +# Web +certbot nginx nginx-extras php php-fpm php-curl php-zip php-xml php-json php-mbstring + +# Web database +mariadb-server php-db php-mysql php-sqlite3 + +# Many services +python3 python3-pip python3-magic diff --git a/Server/Root/Server/Scripts/RenewCerts.sh b/Server/Root/Server/Scripts/RenewCerts.sh new file mode 100755 index 0000000..0a4525a --- /dev/null +++ b/Server/Root/Server/Scripts/RenewCerts.sh @@ -0,0 +1,9 @@ +#!/bin/sh +systemctl stop nginx +#cd /etc/letsencrypt/live/ +#for Domain in *.octt.eu.org +#do +# certbot certonly --standalone -d $Domain +#done +certbot renew +systemctl start nginx diff --git a/Server/Root/etc/systemd/system/FreshRSS-actualize.service b/Server/Root/etc/systemd/system/FreshRSS-actualize.service new file mode 100644 index 0000000..351c197 --- /dev/null +++ b/Server/Root/etc/systemd/system/FreshRSS-actualize.service @@ -0,0 +1,8 @@ +[Unit] +Description=FreshRSS get new content +Wants=freshrss.timer + +[Service] +User=www-data +Type=simple +ExecStart=/usr/bin/php /Server/www/FreshRSS/app/actualize_script.php diff --git a/Server/Root/etc/systemd/system/FreshRSS-actualize.timer b/Server/Root/etc/systemd/system/FreshRSS-actualize.timer new file mode 100644 index 0000000..a95a9cd --- /dev/null +++ b/Server/Root/etc/systemd/system/FreshRSS-actualize.timer @@ -0,0 +1,9 @@ +[Unit] +Description=FreshRSS get new content + +[Timer] +OnBootSec=30s +OnCalendar=*:0/20 + +[Install] +WantedBy=timers.target