mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Upd
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user