summarylogtreecommitdiffstats
path: root/config.yml
blob: 465bec4db40d695430e25a11975aaf2526c35f3f (plain)
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
postgres:
    host: localhost
    port: 5432
    name: bitmagnet
    user: bitmagnet
    password:
#    connection_timeout: 0
    ssl_cert_path:
    ssl_key_path:
    ssl_mode:
    ssl_root_cert_path:

tmdb:
#    api_key:
#    rate_limit: 50ms
#    rate_limit_burst: 5

dht_server:
     port: 3334
#     query_timeout: 4s

#dht_crawler:
#    save_files_threshold: 100
#    save_pieces: false
#    scaling_factor: 10
#    rescrape_threshold: 720h
#    reseed_bootstrap_nodes_interval: 1m

http_server:
    local_address: 127.0.0.1:3333
    options:
        - '*'
#        - cors
#        - pprof
#        - graphql
#        - import
#        - prometheus
#        - torznab
#        - status
#        - webui
    cors:
        debug: true
        max_age: 0
        allow_credentials: false
        allow_private_network: false
        allowed_origins:
        allowed_methods:
        allowed_headers:
            - '*'
        exposed_headers:
        options_passthrough: false
        options_success_status: 0

log:
    level: info
    development: false
    json: false
    file_rotator:
        enabled: false
        level: info
        path: /var/log/bitmagnet
#        max_age: 1h
#        max_size: 100000000
#        max_backups: 5