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

Add [global.config] in conduwuit-example.toml #591

Open
wenxuanjun opened this issue Oct 10, 2024 · 2 comments
Open

Add [global.config] in conduwuit-example.toml #591

wenxuanjun opened this issue Oct 10, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@wenxuanjun
Copy link

Conduwuit supports setting proxy and its code is located in src/core/config/proxy.rs.

Example config in code (need to add details of configuration items):

[global.proxy]
global = { url = "socks5h://localhost:9050" }

[[global.proxy.by_domain]]
url = "socks5h://localhost:9050"
include = ["*.onion", "matrix.myspecial.onion"]
exclude = ["*.myspecial.onion"]
@girlbossceo
Copy link
Owner

Has anyone validated if this proxy code still works in conduwuit? It's been pretty much untouched since we forked.

@wenxuanjun
Copy link
Author

wenxuanjun commented Oct 13, 2024

I have tried these two config and they seem to work fine (my server can't connect directly to matrix.org due to special network environment).

[global.proxy]
global = { url = "http://127.0.0.1:8080" }
[[global.proxy.by_domain]]
url = "http://127.0.0.1:8080"
include = ["*.onion", "matrix.org", "*.matrix.org"]

But I didn't test exclude, and do not have a good way to get detailed logs to prove the proxy usage of conduwuit.

@girlbossceo girlbossceo added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants