Skip to content

Instantly share code, notes, and snippets.

@phlinhng
Last active June 10, 2020 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phlinhng/dae040eda77bea281f50ab80a13c83bc to your computer and use it in GitHub Desktop.
Save phlinhng/dae040eda77bea281f50ab80a13c83bc to your computer and use it in GitHub Desktop.
[Unit]
Description=MTG - Bullshit-free MTPROTO proxy for Telegram
Documentation=https://github.com/9seconds/mtg
After=network.target nss-lookup.target
Wants=network-online.target
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/mtg run <secret> --bind 0.0.0.0:8443
Restart=on-failure
RestartSec=10
RestartPreventExitStatus=23
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment