mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-04-26 15:18:51 +02:00
Upd
This commit is contained in:
parent
802de2a5bd
commit
e2bf7bca71
@ -37,6 +37,14 @@ EchoExec cp -rp "../shiori-data/Latest.d" "./shiori-data"
|
|||||||
GitPush
|
GitPush
|
||||||
cd ..
|
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 "/Cloud/Repos/Personal-Game-Saves"
|
||||||
#GitPullPushPath "/media/Disk/Configs"
|
#GitPullPushPath "/media/Disk/Configs"
|
||||||
|
|
||||||
|
@ -12,5 +12,8 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,22 @@ server {
|
|||||||
location /Drive/ {
|
location /Drive/ {
|
||||||
root /Server/www;
|
root /Server/www;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
sub_filter '</head>' '<meta name="viewport" content="width=device-width, initial-scale=1.0"/></head>';
|
autoindex_exact_size off;
|
||||||
sub_filter_once on;
|
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/ {
|
location /Drive/Telegram/ {
|
||||||
rewrite ^/Drive/Telegram/(.*)$ /$1 break;
|
rewrite ^/Drive/Telegram/(.*)$ /$1 break;
|
||||||
|
@ -6,9 +6,9 @@ StartLimitIntervalSec=0
|
|||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
CPUQuota=85%
|
CPUQuota=75%
|
||||||
MemoryMax=384M
|
MemoryMax=350M
|
||||||
User=pi
|
User=pi
|
||||||
ExecStart=/Server/SpaccCraft/StartSpaccCraft.sh
|
ExecStart=script /dev/null -c "export TERM=vt100; screen -S SpaccCraft sh /Server/SpaccCraft/StartSpaccCraft.sh"
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user