Add some server things

This commit is contained in:
octospacc 2023-08-21 17:29:09 +02:00
parent bee34469cd
commit 57e77ccf8c
4 changed files with 40 additions and 0 deletions

14
Server/AptPackages.txt Normal file
View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,9 @@
[Unit]
Description=FreshRSS get new content
[Timer]
OnBootSec=30s
OnCalendar=*:0/20
[Install]
WantedBy=timers.target