Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /opt/MTProxy/mtproxy.service
- [Unit]
- Description=Telegram proxy
- After=network.target network-online.target
- [Service]
- WorkingDirectory=/opt/MTProxy
- EnvironmentFile=/opt/MTProxy/config
- ExecStartPre=/usr/bin/curl -s https://core.telegram.org/getProxySecret -o proxy-secret
- ExecStartPre=/usr/bin/curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf
- ExecStart=/opt/MTProxy/mtproto-proxy -u nobody -6 -p ${STATPORT} -H ${PROXYPORT} -S ${SECRET} --aes-pwd proxy-secret proxy-multi.conf -M 1
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement