mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-01 03:29:18 +02:00
Auto-Backup $'Mon Mar 24 2025 00:31:42 GMT+0100 (Central European Standard Time)'
This commit is contained in:
parent
b8b72f1027
commit
240e43803c
@ -233,10 +233,13 @@ Jobs.Cloud_ServerBackupLimited = async () => {
|
||||
await BackPathCrypt('script-server', Secrets.BackupKey_Git_scriptserver);
|
||||
await BackPathCrypt('docker-mailserver', Secrets.BackupKey_Git_dockermailserver);
|
||||
await BackPathCrypt('memos', Secrets.BackupKey_Git_memos);
|
||||
await $`split --bytes=95M --numeric-suffixes ./FreshRSS.tar.xz.cpt FreshRSS.tar.xz.cpt.`;
|
||||
await $`rm ./FreshRSS.tar.xz.cpt`;
|
||||
await GitPullPush();
|
||||
};
|
||||
|
||||
Jobs.Cloud_ArticlesBackupPrivate = async () => {
|
||||
await GitReclone('Articles-Backup-Private', 'https://gitlab.com/octospacc/Articles-Backup-Private/');
|
||||
await FolderGoCopyForCloud('shiori-data', 'Articles-Backup-Private');
|
||||
await GitPullPush();
|
||||
};
|
||||
|
@ -2,3 +2,4 @@
|
||||
set -e
|
||||
rm -rf /root/.cache /home/*/.cache || true
|
||||
rm -rf /var/log/*.{4,5,6,7,8,9}.* || true
|
||||
docker system prune -af
|
||||
|
@ -14,8 +14,8 @@ while true; do
|
||||
-smbios type=4,manufacturer=Intel,max-speed=4800,current-speed=4800 \
|
||||
-cpu "host,family=6,model=158,stepping=2,model_id=Intel(R) Core(TM) i9-12900K CPU @ 2.60GHz,vmware-cpuid-freq=false,enforce=false,host-phys-bits=true,hypervisor=off" \
|
||||
-machine q35,kernel_irqchip=on \
|
||||
-smp 3 \
|
||||
-m 3840M \
|
||||
-smp 4 \
|
||||
-m 3700M \
|
||||
-drive file=./WindowsServer2022.qcow2,format=qcow2,index=0,media=disk \
|
||||
-device e1000,netdev=net0 \
|
||||
-netdev user,id=net0,hostfwd=tcp::3389-:3389,hostfwd=udp::3389-:3389 \
|
||||
|
@ -107,6 +107,20 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
location ~ ^/new/api/v3/posts/.+/diffs/.+$ {
|
||||
#limit_except GET POST PUT HEAD OPTIONS {
|
||||
# deny all;
|
||||
#}
|
||||
if ($request_method = DELETE) {
|
||||
return 405;
|
||||
}
|
||||
proxy_pass http://localhost:4567;
|
||||
}
|
||||
|
||||
location /search/ {
|
||||
return 301 $scheme://$host/new/$request_uri;
|
||||
}
|
||||
|
||||
location /user/ {
|
||||
rewrite ^ $scheme://$host/new/$request_uri redirect;
|
||||
}
|
||||
|
@ -32,10 +32,10 @@ server {
|
||||
proxy_pass http://127.0.0.1/MemosViewer.php?structure=original&uid=;
|
||||
proxy_set_header Host hlb0.octt.eu.org;
|
||||
}
|
||||
location ~ ^/memos.api.v1.MemoService/(CreateMemo|UpdateMemo)$ {
|
||||
proxy_pass $proxy_pass_backend;
|
||||
proxy_set_header Host hlb0.octt.eu.org;
|
||||
}
|
||||
#location ~ ^/memos.api.v1.MemoService/(CreateMemo|UpdateMemo)$ {
|
||||
# proxy_pass $proxy_pass_backend;
|
||||
# proxy_set_header Host hlb0.octt.eu.org;
|
||||
#}
|
||||
location /assets/index-CupmbTt3.js {
|
||||
return 301 $scheme://hlb0.octt.eu.org/Res/Memos/fix-2024-06-03/index-01f381cb-D3gN5Bpo.js;
|
||||
}
|
||||
|
26
Server/Root/etc/nginx/sites-available/test.octt.eu.org.conf
Normal file
26
Server/Root/etc/nginx/sites-available/test.octt.eu.org.conf
Normal file
@ -0,0 +1,26 @@
|
||||
server {
|
||||
listen 80;
|
||||
index index.php index.html;
|
||||
server_name test.octt.eu.org;
|
||||
root /Main/Server/www/test;
|
||||
|
||||
default_type text/plain;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
|
||||
rewrite ^/(content|site|kirby)/(.*)$ /error last;
|
||||
rewrite ^/\.(?!well-known/) /error last;
|
||||
rewrite ^/(?!app\.webmanifest)[^/]+$ /index.php last;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~* \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_pass php;
|
||||
include fastcgi.conf;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SERVER_PORT 80;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user