diff options
Diffstat (limited to 'mtproxy.service')
-rw-r--r-- | mtproxy.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mtproxy.service b/mtproxy.service new file mode 100644 index 000000000000..5fc17cdb5cbd --- /dev/null +++ b/mtproxy.service @@ -0,0 +1,11 @@ +[Unit] +Description=Telegram proxy server +Requires=mtproxy-config.service + +[Service] +Type=simple +EnvironmentFile=/etc/mtproxy.conf +ExecStart=/usr/bin/mtproto-proxy --user=${USER} --port=${STATS_PORT} --http-ports=${CLIENT_PORT} --mtproto-secret=${SECRET} --aes-pwd=/var/lib/mtproxy/secret.conf /var/lib/mtproxy/multi.conf + +[Install] +WantedBy=network-online.target |