forked from tdjsnelling/sqtracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.js
108 lines (84 loc) · 4.56 KB
/
config.example.js
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// This is an example configuration file.
// Copy it to config.js and change each value according to your desired setup.
module.exports = {
envs: {
// The name of your tracker site. Maximum 20 characters.
SQ_SITE_NAME: "sqtracker demo",
// A short description of your tracker site. Maximum 80 characters.
SQ_SITE_DESCRIPTION: "A short description for your tracker site",
// A map of custom hex colours to use as the theme of your site.
// If not specified, the default light and dark themes will be used.
// If only "primary" is specified, the default light and dark themes will be used but with your main brand colour.
// If the other values are specified, the fully custom theme will be used and not the default light/dark.
SQ_CUSTOM_THEME: {
primary: "#f45d48",
// background: "#1f2023", // Page background colour
// sidebar: "#27282b", // A secondary background colour, used for sidebar, infoboxes etc.
// border: "#303236", // Border colour
// text: "#f8f8f8", // Text colour. Should be readable against background and sidebar
// grey: "#aaa", // Secondary text colour, used for less important text
},
// Registration mode. Either "open", "invite" or "closed".
// Open: anyone can register.
// Invite: must be invited by existing user.
// Closed: no one can register.
SQ_ALLOW_REGISTER: "invite",
// A boolean value determining whether users can choose to upload anonymously.
// Admins can still see who uploaded anonymously, but other users cannot.
SQ_ALLOW_ANONYMOUS_UPLOADS: false,
// Minimum allowed ratio. Below this users will not be able to download. Minimum 0.
SQ_MINIMUM_RATIO: 0.75,
// A map of torrent categories that can be selected when uploading.
// Each has an array of zero or more sources available within that category.
SQ_TORRENT_CATEGORIES: {
Movies: ["BluRay", "WebDL", "HDRip", "WebRip", "DVD", "Cam"],
TV: [],
Music: [],
Books: [],
},
// Number of bonus points awarded to a user for each GB they upload. Minimum 0.
SQ_BP_EARNED_PER_GB: 1,
// Number of bonus points awarded to a user if they suggest a torrent to fill a request and it gets accepted
// They get double if they also the uploader of the accepted torrent
SQ_BP_EARNED_PER_FILLED_REQUEST: 1,
// Number of bonus it costs a user to buy 1 invite (set to 0 to disable buying invites).
SQ_BP_COST_PER_INVITE: 3,
// Number of bonus it costs a user to buy 1 GB of upload (set to 0 to disable buying upload).
SQ_BP_COST_PER_GB: 3,
// Whether to enable freeleech on all torrents.
SQ_SITE_WIDE_FREELEECH: false,
// Whether torrent pages can be viewed by unregistered users.
// If true, only logged-in users will be able to download/interact, but anyone (search engines included) will be able to view/read torrent info.
// Enable if you want torrents to be indexed to help search traffic.
SQ_ALLOW_UNREGISTERED_VIEW: false,
// The URL of your tracker site.
SQ_BASE_URL: "https://sqtracker.dev",
// The URL of your API. Under the recommended setup, it should be `${SQ_BASE_URL}/api`.
SQ_API_URL: "https://sqtracker.dev/api",
// The URL of your MongoDB server. Under the recommended setup, it should be `mongodb://sq_mongodb/sqtracker`.
SQ_MONGO_URL: "mongodb://sq_mongodb/sqtracker",
// The email address that mail will be sent from.
SQ_MAIL_FROM_ADDRESS: "[email protected]",
// The hostname of your SMTP server.
SQ_SMTP_HOST: "smtp.example.com",
// The port of your SMTP server.
SQ_SMTP_PORT: 587,
// Whether to force SMTP TLS: if true the connection will use TLS when connecting to server.
// If false (the default) then TLS is used if server supports the STARTTLS extension.
// In most cases set this value to true if you are connecting to port 465. For port 587 or 25 keep it false.
SQ_SMTP_SECURE: false,
},
secrets: {
// A secret value to sign tokens with. Should be long and random.
SQ_JWT_SECRET: "long_random_string",
// A secret value to verify server requests with. Should be long and random, and different to the JWT secret.
SQ_SERVER_SECRET: "another_long_random_string",
// The email address to use for the initial admin user.
// Must be valid, you will need to verify.
SQ_ADMIN_EMAIL: "[email protected]",
// The username to authenticate with your SMTP server with.
SQ_SMTP_USER: "smtp_username",
// The password to authenticate with your SMTP server with.
SQ_SMTP_PASS: "smtp_password",
},
};