You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2023. It is now read-only.
This is the documentation site for all Torrust projects.
2
+
3
+
This is the documentation site for the Torrust [Tracker](https://github.com/torrust/torrust-tracker) and [Index](https://github.com/torrust/torrust-index).
Navigate to the project folder (docs) and run the following command:
32
32
33
33
```bash
34
34
mkdocs serve
35
35
```
36
36
37
-
### Test Development
38
-
39
37
Visit `http://localhost:8000` to see live changes.
40
38
41
-
### Run Production
39
+
__Run for production:__
42
40
43
41
Navigate to the project folder (docs) and build the static site:
44
42
@@ -49,5 +47,5 @@ mkdocs build
49
47
Publish the newly built docs/site folder using NGINX or Apache.
50
48
51
49
## Contributing
52
-
Please report any bugs you find to our issue tracker. Ideas and feature requests are welcome as well!
53
-
Any pull request targeting existing issues would be very much appreciated.
50
+
51
+
Please report any bugs you find to our issue tracker. Ideas and feature requests are welcome as well! Any pull request targeting existing issues would be very much appreciated.
Copy file name to clipboardExpand all lines: docs/torrust-index/config.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,35 @@
1
-
# Configuring Torrust
1
+
# Configuring the Index
2
+
2
3
Torrust's configuration is a simple TOML file. If no TOML file is found, it will fail on startup.
3
4
4
5
## Must change
6
+
5
7
> These are all the configuration options that can affect the security of your instance. Please make sure to change these to your own values.
8
+
6
9
-`tracker.token`
7
10
-`auth.secret_key`
8
11
9
12
## Configuration
10
13
11
14
### Tracker
15
+
12
16
-`REQUIRED``url`: public UDP url of the torrust-tracker instance.
13
17
-`REQUIRED``api_url`: URL of the torrust-tracker API, usually `http://localhost:1212`.
14
18
-`REQUIRED``token`: token configured in the torrust-tracker configuration.
15
19
-`REQUIRED``token_valid_seconds`: Lifetime of a tracker key.
16
20
17
21
### NET
18
-
-`REQUIRED``port`: The port the API will listen on. It's not advised to use ports under 1024 because root access is required for these ports.
19
-
-`OPTIONAL``base_url`: The URL this application is accesible from. Used to build the email verification URL. If not set it uses the hostname the endpoint was called from.
20
22
23
+
-`REQUIRED``port`: The port the API will listen on. It's not advised to use ports under 1024 because root access is required for these ports.
24
+
-`OPTIONAL``base_url`: The URL this application is accessible from. Used to build the email verification URL. If not set it uses the hostname the endpoint was called from.
21
25
22
26
### Database
23
-
-`REQUIRED``connect_url`: The connection URL of the database. Should always start with `sqlite:`, no other databases are supported as of now.Including `mode=rwc` allows the database to be `Read / Writed / Created`. Example: `sqlite://data.db?mode=rwc`
27
+
28
+
-`REQUIRED``connect_url`: The connection URL of the database. Should always start with `sqlite:`, no other databases are supported as of now.Including `mode=rwc` allows the database to be `Read / Written / Created`. Example: `sqlite://data.db?mode=rwc`
24
29
-`REQUIRED``torrent_info_update_interval`: Interval in seconds for updating torrent seeder and leecher information. This can be a heavy operation depending on the amount of torrents that are tracked, and thus is not recommended to be lower than `1800` seconds.
25
30
26
31
### Mail
32
+
27
33
-`REQUIRED``server`: Hostname or IP address of a SMTP server.
28
34
-`REQUIRED``port`: Port of the SMTP server.
29
35
-`REQUIRED``username`: Username for authenticating with the specified SMTP server.
@@ -32,14 +38,17 @@ Torrust's configuration is a simple TOML file. If no TOML file is found, it will
32
38
-`REQUIRED``reply_to`: Email address to which replies on the emails should be sent. Can also be a non reply address, or the same as the from address.
33
39
34
40
### Auth
41
+
35
42
-`REQUIRED``min_password_length`: Minimum length of a password when registering a new user.
36
43
-`REQUIRED``max_password_length`: Maximum length of a password when registering a new user.
37
-
-`REQUIRED``secret_key`: Signing key of the JWT authentication tokens. Keeping these default will severly impact the security of your instance, and allows attackers to login as any user.
44
+
-`REQUIRED``secret_key`: Signing key of the JWT authentication tokens. Keeping these default will severely impact the security of your instance, and allows attackers to login as any user.
38
45
39
46
### Storage
47
+
40
48
-`REQUIRED``upload_path`: Path where uploads should be stored. Directories will be automatically created on startup if they don't exist.
0 commit comments