-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
82 lines (79 loc) · 2.53 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
db:
nosql:
url: mongodb://10.10.10.10:27017
name: gg
sql: "mysql+asyncmy://root:galaxygallery@10.10.10.10:3306/gg"
mq: "amqp://guest:guest@10.10.10.10:49158"
site:
name: "Galaxy Gallery Private Tracker"
short: "[GGPT]"
torrent_unique_key: "[GGPT]"
domain: ['http://localhost:8080', 'https://pt.galaxy.gallery', 'https://6kj6r17qk.csb.app/', 'http://localhost:52652'] # for CORS checking
SECRET_KEY: c3ff4f4c36ab0bcd483e8bd76fbc5d43a8a76b71a582db1f96561e084be437ae
ALGORITHM: HS256
default:
expire_minutes: 30
email:
sender: galaxygallery_no_reply@hotmail.com
host: smtp.office365.com
port: 587
preference:
per_page: 30
reseed_threshold: 30 # unit days
word_filter:
['fuck', 'fxxk']
client:
baned_ports:
[
22, # SSH Port
53, # DNS queries
80, 81, 8080, 8081, # Hyper Text Transfer Protocol (HTTP) - port used for web traffic
411, 412, 413, # Direct Connect Hub (unofficial)
443, 8443, # HTTPS / SSL - encrypted web traffic, also used for VPN tunnels over HTTPS.
1214, # Kazaa - peer-to-peer file sharing, some known vulnerabilities, and at least one worm (Benjamin) targeting it.
3389, # IANA registered for Microsoft WBT Server, used for Windows Remote Desktop and Remote Assistance connections
4662, # eDonkey 2000 P2P file sharing service. http://www.edonkey2000.com/
6346, 6347, # Gnutella (FrostWire, Limewire, Shareaza, etc.), BearShare file sharing app
6699, # Port used by p2p software, such as WinMX, Napster.
6881, 6882, 6883, 6884, 6885, 6886, 6887, 6888, 6889, 6890 # BitTorrent part of full range of ports used most often (unofficial)
]
cache:
redis:
host: 10.10.10.10
port: 6379
core:
torrent:
rank:
search_suggestion:
ttl: 300
utils:
checker:
ip_checker:
_check_db: null # maxsize = None
ua_checker:
_check_db: null # maxsize = None
models:
user:
user:
get_user_by_id:
ttl: 60
get_userid_by_passkey:
ttl: 60
torrent:
peer:
_get_peer_count:
ttl: 60 # peer count update per 30 seconds
torrent:
_get_torrent_list:
ttl: 30
get_torrent_list:
ttl: 30
get_torrent_info_hash: null
get_torrent_id: null
user_peer_stat:
get_last_action:
ttl: 86400
get_count_peer_stat_count_by_tid:
ttl: 60
get_count_peer_stat_count_by_uid:
ttl: 60