nadia
nadia copied to clipboard
How use with proxy?
How use with proxy? I try like:
config :nadia,
token: System.get_env("NADIA_KEY"),
proxy: "socks5://buff_10.n-3.mtproxy.me&port=3914&secret=c6ac5fc89ac8e6829e7c6bb44214c65e"
or
config :nadia,
token: System.get_env("NADIA_KEY"),
proxy: "socks5://server:port",
socks5_user: "user",
socks5_pass: "pass"
or
config :nadia,
token: System.get_env("NADIA_KEY"),
proxy: tg://proxy?server=server&port=443&secret=secret
allways {:error, %HTTPoison.Error{id: nil, reason: :nxdomain}}
I've never used it, but looking to the nadia & HTTPoison source this should work:
config :nadia,
token: System.get_env("NADIA_KEY"),
proxy: "http://buff_10.n-3.mtproxy.me:port",
proxy_auth: {"user", "pass"},
# ssl: [versions: [:'tlsv1.2']] # If you use SSL
or:
config :nadia,
token: System.get_env("NADIA_KEY"),
proxy: {:socks5, 'buff_10.n-3.mtproxy.me', "port",
socks5_user: "user",
socks5_pass: "pass"
user and pass for socks5://buff_10.n-3.mtproxy.me&port=3914&secret=c6ac5fc89ac8e6829e7c6bb44214c65e not exists. Where i can write secret?
@Slavenin Hi! I have exactly the same problem with MTproto proxy configuring. Have you found any solutions?