2021-04-04 17:24:58 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
const (
|
|
|
|
m1 = "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"
|
|
|
|
m2 = "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"
|
|
|
|
m3 = "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"
|
|
|
|
m4 = "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"
|
|
|
|
m5 = "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"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
metadataFolder = "./distribyted-data/metadata"
|
|
|
|
mountFolder = "./distribyted-data/mount"
|
2021-11-20 19:57:25 +00:00
|
|
|
logsFolder = "./distribyted-data/logs"
|
2021-04-04 17:24:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func DefaultConfig() *Root {
|
|
|
|
return &Root{
|
|
|
|
HTTPGlobal: &HTTPGlobal{
|
|
|
|
Port: 4444,
|
|
|
|
},
|
|
|
|
WebDAV: &WebDAVGlobal{
|
|
|
|
Port: 36911,
|
2021-10-11 16:50:18 +00:00
|
|
|
User: "admin",
|
|
|
|
Pass: "admin",
|
2021-04-04 17:24:58 +00:00
|
|
|
},
|
|
|
|
Torrent: &TorrentGlobal{
|
2021-11-20 19:57:25 +00:00
|
|
|
GlobalCacheSize: 2048,
|
2021-04-04 17:24:58 +00:00
|
|
|
MetadataFolder: metadataFolder,
|
2021-11-20 19:57:25 +00:00
|
|
|
AddTimeout: 60,
|
2021-04-04 17:24:58 +00:00
|
|
|
},
|
|
|
|
Fuse: &FuseGlobal{
|
|
|
|
AllowOther: false,
|
|
|
|
Path: mountFolder,
|
|
|
|
},
|
2021-11-20 19:57:25 +00:00
|
|
|
Log: &Log{
|
|
|
|
Path: logsFolder,
|
|
|
|
MaxBackups: 2,
|
|
|
|
MaxSize: 50,
|
|
|
|
},
|
2021-04-04 17:24:58 +00:00
|
|
|
Routes: []*Route{
|
|
|
|
{
|
|
|
|
Name: "multimedia",
|
|
|
|
Torrents: []*Torrent{
|
|
|
|
{
|
|
|
|
MagnetURI: m1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MagnetURI: m2,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MagnetURI: m3,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MagnetURI: m4,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MagnetURI: m5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|