summarylogtreecommitdiffstats
path: root/mtproxy.service
blob: 3934b411065f15a78de48b00ea48f4be03e82403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Unit]
Description=Telegram proxy server
Requires=mtproxy-config.service
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
EnvironmentFile=/etc/mtproxy.conf
Restart=on-failure
ExecStart=/usr/bin/mtproto-proxy \
    --user=${USER} \
    --port=${STATS_PORT} \
    --http-ports=${CLIENT_PORT} \
    --mtproto-secret=${SECRET} \
    --aes-pwd=/var/lib/mtproxy/secret.conf \
    $ARGS \
    /var/lib/mtproxy/multi.conf

[Install]
WantedBy=multi-user.target