royalcat refactoring
This commit is contained in:
parent
1da835cea6
commit
b245c9f451
81 changed files with 1476 additions and 1580 deletions
|
@ -4,7 +4,7 @@
|
|||
# HTTP specific configuration.
|
||||
http:
|
||||
port: 4444
|
||||
|
||||
|
||||
ip: "0.0.0.0"
|
||||
|
||||
# Serve all routes content over http on IP:PORT/fs
|
||||
|
@ -18,13 +18,13 @@ webdav:
|
|||
|
||||
# Specific configuration for torrent backend.
|
||||
torrent:
|
||||
# Size in MB for the cache. This is the maximum space used by distribyted to store
|
||||
# Size in MB for the cache. This is the maximum space used by tstor to store
|
||||
# torrent data. Less used torrent data will be discarded if this value is reached.
|
||||
# global_cache_size: -1 #No limit
|
||||
global_cache_size: 2048
|
||||
|
||||
# Folder where distribyted metadata will be stored.
|
||||
metadata_folder: ./distribyted-data/metadata
|
||||
# Folder where tstor metadata will be stored.
|
||||
metadata_folder: ./tstor-data/metadata
|
||||
|
||||
# Disable IPv6.
|
||||
#disable_ipv6: true
|
||||
|
@ -32,36 +32,36 @@ torrent:
|
|||
# Timeout in seconds when adding a magnet or a torrent.
|
||||
add_timeout: 60
|
||||
|
||||
# Timeout in seconds when reading any torrent content. Usefult when reading
|
||||
# Timeout in seconds when reading any torrent content. Usefult when reading
|
||||
# archived content from .rar, .zip or .7z.
|
||||
read_timeout: 120
|
||||
fuse:
|
||||
# Folder where fuse will mount torrent filesystem
|
||||
# For windows users:
|
||||
# - You can set here also a disk letter like X: or Z:.
|
||||
# - The folder MUST NOT exists.
|
||||
path: ./distribyted-data/mount
|
||||
# Add this flag if you want to allow other users to access this fuse mountpoint.
|
||||
# You need to add user_allow_other flag to /etc/fuse.conf file.
|
||||
# allow_other: true
|
||||
# fuse:
|
||||
# # Folder where fuse will mount torrent filesystem
|
||||
# # For windows users:
|
||||
# # - You can set here also a disk letter like X: or Z:.
|
||||
# # - The folder MUST NOT exists.
|
||||
# path: ./tstor-data/mount
|
||||
# # Add this flag if you want to allow other users to access this fuse mountpoint.
|
||||
# # You need to add user_allow_other flag to /etc/fuse.conf file.
|
||||
# # allow_other: true
|
||||
|
||||
log:
|
||||
path: ./distribyted-data/logs
|
||||
path: ./tstor-data/logs
|
||||
|
||||
# MaxBackups is the maximum number of old log files to retain. The default
|
||||
# is to retain all old log files (though MaxAge may still cause them to get
|
||||
# deleted.)
|
||||
# is to retain all old log files (though MaxAge may still cause them to get
|
||||
# deleted.)
|
||||
max_backups: 2
|
||||
|
||||
# MaxAge is the maximum number of days to retain old log files based on the
|
||||
# timestamp encoded in their filename. Note that a day is defined as 24
|
||||
# hours and may not exactly correspond to calendar days due to daylight
|
||||
# savings, leap seconds, etc. The default is not to remove old log files
|
||||
# based on age.
|
||||
# timestamp encoded in their filename. Note that a day is defined as 24
|
||||
# hours and may not exactly correspond to calendar days due to daylight
|
||||
# savings, leap seconds, etc. The default is not to remove old log files
|
||||
# based on age.
|
||||
# max_age: 30
|
||||
|
||||
# MaxSize is the maximum size in megabytes of the log file before it gets
|
||||
# rotated. It defaults to 100 megabytes.
|
||||
# rotated. It defaults to 100 megabytes.
|
||||
max_size: 50
|
||||
|
||||
# debug: true
|
||||
|
@ -72,35 +72,35 @@ routes:
|
|||
# Adding a folder will load all torrents on it:
|
||||
# torrent_folder: "/path/to/torrent/folder"
|
||||
torrents:
|
||||
# You can also add torrents from a specific path
|
||||
# - torrent_path: /path/to/torrent/file.torrent
|
||||
- magnet_uri: "magnet:?xt=urn:btih:c9e15763f722f23e98a29decdfae341b98d53056&dn=Cosmos+Laundromat&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fcosmos-laundromat.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fbig-buck-bunny.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:209c8226b299b308beaf2b9cd3fb49212dbd13ec&dn=Tears+of+Steel&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Ftears-of-steel.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:a88fda5954e89178c372716a6a78b8180ed4dad3&dn=The+WIRED+CD+-+Rip.+Sample.+Mash.+Share&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fwired-cd.torrent"
|
||||
# You can also add torrents from a specific path
|
||||
# - torrent_path: /path/to/torrent/file.torrent
|
||||
- magnet_uri: "magnet:?xt=urn:btih:c9e15763f722f23e98a29decdfae341b98d53056&dn=Cosmos+Laundromat&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fcosmos-laundromat.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:dd8255ecdc7ca55fb0bbf81323d87062db1f6d1c&dn=Big+Buck+Bunny&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fbig-buck-bunny.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:08ada5a7a6183aae1e09d831df6748d566095a10&dn=Sintel&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:209c8226b299b308beaf2b9cd3fb49212dbd13ec&dn=Tears+of+Steel&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Ftears-of-steel.torrent"
|
||||
- magnet_uri: "magnet:?xt=urn:btih:a88fda5954e89178c372716a6a78b8180ed4dad3&dn=The+WIRED+CD+-+Rip.+Sample.+Mash.+Share&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2F&xs=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fwired-cd.torrent"
|
||||
# Example mountpoint containing some datasets, some of them compressed in zip format
|
||||
# - name: datasets
|
||||
# torrents:
|
||||
# - magnet_uri: "magnet:?xt=urn:btih:9dea07ba660a722ae1008c4c8afdd303b6f6e53b&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969"
|
||||
# - magnet_uri: "magnet:?xt=urn:btih:d8b3a315172c8d804528762f37fa67db14577cdb&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969"
|
||||
# - magnet_uri: "magnet:?xt=urn:btih:1e0a00b9c606cf87c03e676f75929463c7756fb5&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969"
|
||||
# - name: datasets
|
||||
# torrents:
|
||||
# - magnet_uri: "magnet:?xt=urn:btih:9dea07ba660a722ae1008c4c8afdd303b6f6e53b&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969"
|
||||
# - magnet_uri: "magnet:?xt=urn:btih:d8b3a315172c8d804528762f37fa67db14577cdb&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969"
|
||||
# - magnet_uri: "magnet:?xt=urn:btih:1e0a00b9c606cf87c03e676f75929463c7756fb5&tr=http%3A%2F%2Facademictorrents.com%2Fannounce.php&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969"
|
||||
|
||||
# List of folders where the content will be transformed to a magnet link. You can share any content sending that magnet link to others.
|
||||
servers:
|
||||
- name: server
|
||||
path: ./distribyted-data/served-folders/server
|
||||
path: ./tstor-data/served-folders/server
|
||||
|
||||
# Get trackers from web text file. The file will be loaded every time a magnet uri is generated,
|
||||
# so all trackers will be up to date.
|
||||
# tracker_url: "https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt"
|
||||
tracker_url: "https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt"
|
||||
|
||||
# Trackers to be used to announce the served content. If tracker_url is set and it fails,
|
||||
# Trackers to be used to announce the served content. If tracker_url is set and it fails,
|
||||
# this list will be used instead.
|
||||
trackers:
|
||||
- "wss://tracker.btorrent.xyz"
|
||||
- "wss://tracker.openwebtorrent.com"
|
||||
- "http://p4p.arenabg.com:1337/announce"
|
||||
- "udp://tracker.opentrackr.org:1337/announce"
|
||||
- "udp://open.tracker.cl:1337/announce"
|
||||
- "http://openbittorrent.com:80/announce"
|
||||
# trackers:
|
||||
# - "wss://tracker.btorrent.xyz"
|
||||
# - "wss://tracker.openwebtorrent.com"
|
||||
# - "http://p4p.arenabg.com:1337/announce"
|
||||
# - "udp://tracker.opentrackr.org:1337/announce"
|
||||
# - "udp://open.tracker.cl:1337/announce"
|
||||
# - "http://openbittorrent.com:80/announce"
|
||||
|
|
|
@ -1,14 +1,19 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Distribyted - {{.}}</title>
|
||||
<title>tstor - {{.}}</title>
|
||||
|
||||
<!-- GOOGLE FONTS -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500|Poppins:400,500,600,700|Roboto:400,500"
|
||||
rel="stylesheet" />
|
||||
<link href="https://cdn.materialdesignicons.com/4.4.95/css/materialdesignicons.min.css" rel="stylesheet" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css?family=Montserrat:400,500|Poppins:400,500,600,700|Roboto:400,500"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link
|
||||
href="https://cdn.materialdesignicons.com/4.4.95/css/materialdesignicons.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<!-- SLEEK CSS -->
|
||||
<link id="sleek-css" rel="stylesheet" href="assets/css/sleek.min.css" />
|
||||
<link href="assets/plugins/toastr/toastr.min.css" rel="stylesheet" />
|
||||
<!-- FAVICON -->
|
||||
<link href="assets/img/favicon.png" rel="shortcut icon" />
|
||||
<link href="assets/img/favicon.png" rel="shortcut icon" />
|
||||
|
|
|
@ -96,9 +96,9 @@
|
|||
<script src="assets/js/cache_chart.js"></script>
|
||||
<script src="assets/js/dashboard.js"></script>
|
||||
<script>
|
||||
Distribyted.dashboard.loadView();
|
||||
tstor.dashboard.loadView();
|
||||
setInterval(function () {
|
||||
Distribyted.dashboard.loadView();
|
||||
tstor.dashboard.loadView();
|
||||
}, 2000)
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
<script src="assets/js/logs.js"></script>
|
||||
<script>
|
||||
Distribyted.logs.loadView();
|
||||
tstor.logs.loadView();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
<div id="sidebar" class="sidebar sidebar-with-footer">
|
||||
<!-- Aplication Brand -->
|
||||
<div class="app-brand">
|
||||
<a href="/" title="Distribyted">
|
||||
<a href="/" title="tstor">
|
||||
<img src="/assets/img/favicon.png" />
|
||||
<span class="brand-name text-truncate">Distribyted</span>
|
||||
<span class="brand-name text-truncate">tstor</span>
|
||||
</a>
|
||||
</div>
|
||||
<!-- begin sidebar scrollbar -->
|
||||
|
|
|
@ -69,9 +69,9 @@
|
|||
|
||||
<script src="assets/js/routes.js"></script>
|
||||
<script>
|
||||
Distribyted.routes.loadView();
|
||||
tstor.routes.loadView();
|
||||
setInterval(function () {
|
||||
Distribyted.routes.loadView();
|
||||
tstor.routes.loadView();
|
||||
}, 2000)
|
||||
|
||||
</script>
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
|
||||
<script src="assets/js/servers.js"></script>
|
||||
<script>
|
||||
Distribyted.servers.loadView();
|
||||
tstor.servers.loadView();
|
||||
setInterval(function () {
|
||||
Distribyted.servers.loadView();
|
||||
tstor.servers.loadView();
|
||||
}, 5000)
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue