Auto-Backup $'Sat Nov 23 2024 01:55:42 GMT+0100 (Central European Standard Time)'

This commit is contained in:
octospacc 2024-11-23 02:30:08 +01:00
parent 54d707f82c
commit 0a6879364e
4 changed files with 35 additions and 7 deletions

View File

@ -253,10 +253,6 @@ const Main = async () => {
$`echo Begin ${Time.Stamp} > ${BackupsBase}/Last.log`;
//await Main();
await Work('Mixed_Configs');
await Work('Mixed_Snippets');
await Work('Mixed_OctospaccAltervista');
await Main();
$`echo End ${Time.Stamp} > ${BackupsBase}/Last.log`;

View File

@ -31,5 +31,5 @@ while true; do
# -vnc :10 \
# -display none \
sleep 999
sleep 500
done

View File

@ -0,0 +1,32 @@
server {
listen 80;
listen 443 ssl;
server_name miclockcdn.octt.eu.org;
ssl_certificate /etc/letsencrypt/live/miclockcdn.octt.eu.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/miclockcdn.octt.eu.org/privkey.pem;
ssl_prefer_server_ciphers on;
root /Main/Server/www/miclockcdn;
index index.php;
# Pass all requests to index.php
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM configuration
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; # Adjust PHP version and socket path as needed
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
access_log /var/log/nginx/miclockcdn.access.log;
error_log /var/log/nginx/miclockcdn.error.log;
# Optional: Restrict file access
location ~ /\.(?!well-known).* {
deny all;
}
}

View File

@ -16,7 +16,7 @@ server {
error_page 500 = /error.php?code=500;
access_log /var/log/nginx/root.access.log;
error_log /var/log/nginx/root.error.log;
location / {
location / {
root /Main/Server/www/root;
if ($request_uri ~ ^([^.\?]*[^/])$) {
return 301 $1/;