This commit is contained in:
octospacc 2023-06-27 16:16:22 +02:00
parent 802de2a5bd
commit e2bf7bca71
4 changed files with 30 additions and 5 deletions

View File

@ -37,6 +37,14 @@ EchoExec cp -rp "../shiori-data/Latest.d" "./shiori-data"
GitPush
cd ..
#McServer="SpaccCraft"
#McEdition="Beta-1.7.3"
#cd "/Server/${McServer}/spacccraft-b1.7.3-backup4"
#cp ../*.sh ./
#cp -rT "${BackupsBase}/${McServer}/${McEdition}/Latest" "./${McEdition}"
#GitPush
#cd "${BackupsBase}"
GitPullPushPath "/Cloud/Repos/Personal-Game-Saves"
#GitPullPushPath "/media/Disk/Configs"

View File

@ -12,5 +12,8 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
sub_filter '</body>' '<script> function ForceUpdateFeeds(){ var Count = 0; Array.from(document.querySelectorAll(atob("KltpZF49ImZfIl0uaXRlbS5mZWVk"))).forEach(function(El){ Count++; fetch(location.origin + "/i/?c=feed&a=actualize&id=" + El.id.split("_")[1]); }); setTimeout(function(){ location.reload(); }, Count * 4000); }; </script></body>';
sub_filter '<a id="actualize"' '<a class="btn" href="#" title="Force update feeds" onclick="javascript:ForceUpdateFeeds();">Force update feeds</a><a id="actualize"';
sub_filter_once on;
}
}

View File

@ -48,8 +48,22 @@ server {
location /Drive/ {
root /Server/www;
autoindex on;
sub_filter '</head>' '<meta name="viewport" content="width=device-width, initial-scale=1.0"/></head>';
sub_filter_once on;
autoindex_exact_size off;
sub_filter '<a ' '</span></span>\n\n<span><a ';
sub_filter '</a>' '</a><span>';
sub_filter '<pre>' '<pre>\n<span><span>';
sub_filter '</pre>' '</span></span>\n</pre>';
#sub_filter '<a ' '</span><a ';
#sub_filter '</a>' '</a><span>';
#sub_filter '</a>' '</a></span>';
#sub_filter '</a>' '</a><span>';
#sub_filter '<a ' '</span><a ';
#sub_filter '<pre>' '<pre><span>';
#sub_filter '</pre>' '</span></pre>';
sub_filter '</head>' '\n<meta name="viewport" content="width=device-width, initial-scale=1.0"/>\n<link rel="stylesheet" href="/Res/NginxIndex.css"/>\n</head>';
sub_filter '</h1>' '</h1>\n<input type="checkbox" id="ToggleMetadata" checked="checked"/><label for="ToggleMetadata"> Metadata</label>\n';
sub_filter '<h1>Index of /Drive/' '<h1>Index of <a href="/Drive/">/Drive</a>/';
sub_filter_once off;
}
location /Drive/Telegram/ {
rewrite ^/Drive/Telegram/(.*)$ /$1 break;

View File

@ -6,9 +6,9 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=10
CPUQuota=85%
MemoryMax=384M
CPUQuota=75%
MemoryMax=350M
User=pi
ExecStart=/Server/SpaccCraft/StartSpaccCraft.sh
ExecStart=script /dev/null -c "export TERM=vt100; screen -S SpaccCraft sh /Server/SpaccCraft/StartSpaccCraft.sh"
[Install]
WantedBy=multi-user.target