mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-04-25 06:38:52 +02:00
Add some server things
This commit is contained in:
parent
bee34469cd
commit
57e77ccf8c
14
Server/AptPackages.txt
Normal file
14
Server/AptPackages.txt
Normal 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
|
9
Server/Root/Server/Scripts/RenewCerts.sh
Executable file
9
Server/Root/Server/Scripts/RenewCerts.sh
Executable 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
|
@ -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
|
9
Server/Root/etc/systemd/system/FreshRSS-actualize.timer
Normal file
9
Server/Root/etc/systemd/system/FreshRSS-actualize.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=FreshRSS get new content
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=30s
|
||||||
|
OnCalendar=*:0/20
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
x
Reference in New Issue
Block a user