MTProxy icon indicating copy to clipboard operation
MTProxy copied to clipboard

Display different proxy sponsor for different secret on 1 VPS

Open denisemenov opened this issue 8 years ago • 4 comments

I have a VPS with 3 secret keys and different domains with subdomains for different user groups:

  • the first group without a proxy sponsor tg://proxy?server=first.mtproto1.proxy&port=443&secret=305276***
  • the second group with my personal channel tg://proxy?server=second.mtproto2.proxy&port=443&secret=d0e063***
  • the third group for a commercial project with its own channel tg://proxy?server=third.mtproto3.proxy&port=443&secret=5d6373***

I registered all servers using @mtproxybot and added the tags to the run command. But when I change the proxy server in the Telegram app, the channel does not change.

Systemd service file:

[Unit]
Description=MTProxy
After=network.target

[Service]
Type=simple
ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -P  938e02*** -S d0e063*** -P  b0c9bd*** -S 5d6373*** -P  b8b80*** --aes-pwd /root/MTProxy/proxy-secret /root/MTProxy/proxy-multi.conf -M 1
Restart=on-failure

[Install]
WantedBy=multi-user.target

I tried to use sequential tagging, but it did not change channels in app:

ExecStart=/root/MTProxy/objs/bin/mtproto-proxy -u nobody -p 8888 -H 443 -S 305276*** -S d0e063*** -S 5d6373*** -P  938e02*** -P  b0c9bd*** -P  b8b80*** --aes-pwd /root/MTProxy/proxy-secret

I thought that it can be used with multiple "-P", like it it used with multiple "-S", but Telegram always shows only one sponsored channel for all groups -first on the list. Is I need to use different VPS to display different channels for different groups, or did I do something wrong?

denisemenov avatar Jul 05 '18 15:07 denisemenov

nice feature request. now i rus separate instance per each tag.

iqdoctor avatar Jul 17 '18 16:07 iqdoctor

dubrovka avatar Jul 26 '18 22:07 dubrovka

👀

sae13 avatar Aug 02 '18 15:08 sae13

+1

Alirezaies avatar Mar 04 '20 10:03 Alirezaies