i2p icon indicating copy to clipboard operation
i2p copied to clipboard

[BUG] i2pd.conf is always unconditionally overwritten

Open mtalexan opened this issue 1 year ago • 2 comments

The README.md says to mount over the /home/i2pd/conf/ folder, but the entrypoint.sh is always unconditionally overwriting the i2pd.conf in this folder based on the /home/i2pd/i2pd.org.conf template file and then substituting the variables in it.


I think the intent was to make the i2pd.conf configurable, but it's not at all based on the entrypoint.sh.

mtalexan avatar Jan 21 '24 17:01 mtalexan

The intention of the docker image divax/i2p is to overwrite the configuration file (unconditionally). The configuration of a container is done using environment variables. Hence the README.md is misleading and should be fixed by removing the sentence regarding "mounting the configuration folder". Users looking for docker images supporting overloading i2pd config files could use this repo: https://github.com/PurpleI2P/i2pd . Overloading configuration files is a solution approach with a different security profile than using environment variables (as this docker image). This docker image is also oppinionated towards the use cases of diva.exchange, like here: https://github.com/diva-exchange/diva-dockerized

diva-exchange avatar Jan 26 '24 11:01 diva-exchange

Makes sense, that was my guess, but I didn't want to presume. It's just a documentation issue then.

mtalexan avatar Jan 26 '24 14:01 mtalexan