NebulousLabs / docker-sia

The official docker image for the Sia daemon
https://sia.tech
MIT License
20 stars 1 forks source link

Utilise the upcoming SIAD_DATA_DIR env var #9

Closed ro-tex closed 4 years ago

jkawamoto commented 4 years ago

I'm curious what is the difference between SIA_DATA_DIR and SIAD_DATA_DIR?

ro-tex commented 4 years ago

I'm curious what is the difference between SIA_DATA_DIR and SIAD_DATA_DIR?

From the changelog:

Add SIAD_DATA_DIR environment variable which tells siad where to store the siad-specific data. This complements the SIA_DATA_DIR variable which tells siad where to store general Sia data, such as the API password, configuration, etc.

Under SIAD_DATA_DIR you will find all the important directories such as consensus, wallet, host, renter, etc.
Under SIA_DATA_DIR you will find apipassword, Sia-UI's config.json, etc.

jkawamoto commented 4 years ago

Thanks! So, roughly speaking, current SIA_DATA_DIR will be replaced with SIAD_DATA_DIR and SIA_DATA_DIR will be used for clients.

ro-tex commented 4 years ago

SIAD_DATA_DIR does not replace SIA_DATA_DIR but complements it. If you don't specify one of them both types of data will be stored at the same place. But if you want to store your sensitive apipassword and configs at a different location you can now do that.