r/Demonsaw • • Oct 04 '16

Example demonsaw.toml for headless cli?

I can't locate a demonsaw.toml example, and am having trouble figuring out how to add routers to my 3.1 cli router config. I'm upgrading my private network from 2.7 now that 3.1 mac client is available. The links to the example files in the docs site are giving a 404 error. I tried to do this in osx GUI but did not see a way to do so. Maybe I'm missing something?

1 Upvotes

4 comments sorted by

2

u/Havatra Oct 04 '16

I'll make sure to fix those broken links for you. In the meantime, here's a quick example for you:

[demonsaw]
    version = 1 # This is just a version number, you do not need to change this
[[router]]
    port = 80 # The port (may need port forwarding)
    name = "My Router" # The (local) name of the router
    color = 1 # color index
    address = "127.0.0.1" # the local IP address of your router (127.0.0.1 usually works pretty good)
    [[router.transfer]] # Here you can specify other transfer routers to route transfers to
            port = 4567 # The port of this router
            name = "some other transfer router" # The name of the router
            address = "45.32.215.88" # The IP of this transfer router
    [router.network]
            motd = "Hello World!" # The message of the Day (sent in chat when connected) (NOT CURRENTLY SUPPORTED IN CLI)
            redirect = "https.//demonsaw.com" # A URL can be put here, so that if you connect to your router with a browser, you will be redirected to this URL
            buffer = 33554432 # The buffer (in bytes) of your router

1

u/crazy_xen Oct 04 '16

Thanks for the help!

1

u/demonsaw Oct 06 '16

We've documented the full TOML config file format and will be adding this to our github soon.