GithubHelp home page GithubHelp logo

Comments (4)

josecelano avatar josecelano commented on July 20, 2024

@da2ce7 is adding/renaming logging fields in a new PR: https://github.com/torrust/torrust-tracker/pull/782/files

Current:

log_level = "info"

New:

trace_filter = "info"
trace_style = "full"

from torrust-tracker.

josecelano avatar josecelano commented on July 20, 2024

There is no way to overwrite a single item in a TOML array. See here.

The default configuration contains a disabled UDP tracker:

[[udp_trackers]]
enabled = false
bind_address = "0.0.0.0:6969"

The new default configuration will not contain any UDP tracker configuration. Disabled means not present in the configuration. SO we need to add this:

[[udp_trackers]]
bind_address = "0.0.0.0:6969"

to the TOML templates where we want the UDP tracker to be enabled, instead of just:

[[udp_trackers]]
enabled = true

from torrust-tracker.

josecelano avatar josecelano commented on July 20, 2024

There is no way to overwrite a single item in a TOML array. See here.

The default configuration contains a disabled UDP tracker:

[[udp_trackers]]
enabled = false
bind_address = "0.0.0.0:6969"

The new default configuration will not contain any UDP tracker configuration. Disabled means not present in the configuration. SO we need to add this:

[[udp_trackers]]
bind_address = "0.0.0.0:6969"

to the TOML templates where we want the UDP tracker to be enabled, instead of just:

[[udp_trackers]]
enabled = true

I don't see a way to override the whole http_api dict to disable the HTTP API if we remove the enabled key. That forces us to disable the HTTP API by default. See SergioBenitez/Figment#108

Maybe disabling the API by default is not a bad idea. In fact, we are somehow doing that because the bind address uses the 127.0.0.1 IP, which makes the API inaccessible from outside.

If you don't need the API at all, this is a safer default config.

@da2ce7?

from torrust-tracker.

josecelano avatar josecelano commented on July 20, 2024

These changes affect other repos:

from torrust-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.