Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wishlist: allow reading multiple tunnel files #1994

Open
tidux opened this issue Dec 23, 2023 · 1 comment
Open

Wishlist: allow reading multiple tunnel files #1994

tidux opened this issue Dec 23, 2023 · 1 comment

Comments

@tidux
Copy link

tidux commented Dec 23, 2023

Other programs which reverse proxy other services, notably Tor, inetd, xinetd, Apache, and Nginx, have the ability to read multiple files and assemble them into a single config. This would look like:

$ cd $I2PD_CONFIG_ROOT
$ find .
.
i2pd.conf
tunnels.conf.d/
tunnels.conf.d/service_foo.conf
tunnels.conf.d./service_bar.conf
tunnels.conf.d/service_baz.conf

This would allow other programs to non destructively modify the i2pd configuration, and encourage other developers or packagers to ship i2p integration files.

@tidux tidux changed the title Wishlist: allow reading multiple thn Wishlist: allow reading multiple tunnel files Dec 23, 2023
@r4sas
Copy link
Member

r4sas commented Dec 23, 2023

It is already supported, just no one added information to documentation. By default, app search configs in $datadir/tunnels.d and this can can be configured by tunnelsdir option.

("tunnelsdir", value<std::string>()->default_value(""), "Path to extra tunnels' configs folder (default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants