SHARE
TWEET

mtproxy.service

Radjah Jun 4th, 2018 225 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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top