tstor/config/config.go

97 lines
4.6 KiB
Go
Raw Normal View History

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"
serverFolder = "./distribyted-data/served-folders/server"
2021-04-04 17:24:58 +00:00
)
func DefaultConfig() *Root {
return &Root{
HTTPGlobal: &HTTPGlobal{
2021-11-23 12:05:49 +00:00
Port: 4444,
IP: "0.0.0.0",
HTTPFS: true,
2021-04-04 17:24:58 +00:00
},
WebDAV: &WebDAVGlobal{
Port: 36911,
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,
},
},
},
},
Servers: []*Server{
{
Name: "server",
Path: serverFolder,
Trackers: []string{
"http://p4p.arenabg.com:1337/announce",
"udp://tracker.opentrackr.org:1337/announce",
"udp://9.rarbg.com:2810/announce",
"udp://open.tracker.cl:1337/announce",
"udp://open.stealth.si:80/announce",
"udp://exodus.desync.com:6969/announce",
"http://openbittorrent.com:80/announce",
"udp://www.torrent.eu.org:451/announce",
"udp://vibe.sleepyinternetfun.xyz:1738/announce",
"udp://udp-tracker.shittyurl.org:6969/announce",
"udp://tracker1.bt.moack.co.kr:80/announce",
"udp://tracker0.ufibox.com:6969/announce",
"udp://tracker.zerobytes.xyz:1337/announce",
"udp://tracker.torrent.eu.org:451/announce",
"udp://tracker.tiny-vps.com:6969/announce",
"udp://tracker.theoks.net:6969/announce",
"udp://tracker.pomf.se:80/announce",
"udp://tracker.moeking.me:6969/announce",
"udp://tracker.leech.ie:1337/announce",
"udp://tracker.altrosky.nl:6969/announce",
},
},
},
2021-04-04 17:24:58 +00:00
}
}