Advertisement
Radjah

mtproxy.service

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