-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtracker.toml.tera
More file actions
52 lines (42 loc) · 1.6 KB
/
Copy pathtracker.toml.tera
File metadata and controls
52 lines (42 loc) · 1.6 KB
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
[metadata]
app = "torrust-tracker"
purpose = "configuration"
schema_version = "2.0.0"
[logging]
threshold = "info"
[core]
listed = false
private = {{ tracker_core_private }}
[core.tracker_policy]
persistent_torrent_completed_stat = true
[core.announce_policy]
interval = 300
interval_min = 300
[core.net]
# Whether the tracker expects X-Forwarded-For headers from a reverse proxy.
# Set to true when ANY HTTP tracker uses Caddy TLS termination (use_tls_proxy: true).
# Note: This is a global setting - see docs/external-issues/tracker/on-reverse-proxy-global-setting.md
on_reverse_proxy = {{ on_reverse_proxy }}
[core.database]
driver = "{{ database_driver }}"
{% if database_driver == "sqlite3" %}
# Note: This path is inside the Docker container. The host path is /opt/torrust/storage/tracker/database/
# which is mounted to /var/lib/torrust/tracker/ inside the container.
path = "/var/lib/torrust/tracker/database/{{ tracker_database_name }}"
{% elif database_driver == "mysql" %}
# MySQL connection string format: mysql://<user>:<password>@<host>:<port>/<database>
# The hostname "mysql" references the MySQL service in docker-compose network
path = "mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_host }}:{{ mysql_port }}/{{ mysql_database }}"
{% endif %}
{% for udp_tracker in udp_trackers %}
[[udp_trackers]]
bind_address = "{{ udp_tracker.bind_address }}"
{% endfor %}
{% for http_tracker in http_trackers %}
[[http_trackers]]
bind_address = "{{ http_tracker.bind_address }}"
{% endfor %}
[http_api]
bind_address = "{{ http_api_bind_address }}"
[health_check_api]
bind_address = "{{ health_check_api_bind_address }}"