mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-03-18 19:50:16 +01:00
Auto-Backup $'Sat Nov 23 2024 01:55:42 GMT+0100 (Central European Standard Time)'
This commit is contained in:
parent
54d707f82c
commit
0a6879364e
@ -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`;
|
||||
|
@ -31,5 +31,5 @@ while true; do
|
||||
# -vnc :10 \
|
||||
# -display none \
|
||||
|
||||
sleep 999
|
||||
sleep 500
|
||||
done
|
||||
|
32
Server/Root/etc/nginx/sites-available/miclockcdn.conf
Normal file
32
Server/Root/etc/nginx/sites-available/miclockcdn.conf
Normal 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;
|
||||
}
|
||||
}
|
@ -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/;
|
||||
|
Loading…
x
Reference in New Issue
Block a user