Browse Source

More detail and secure service example

tags/v2.1.6^2
AHOHNMYC 4 years ago
parent
commit
2ae0101d18
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      README.md

+ 4
- 1
README.md View File

@@ -317,12 +317,15 @@ Now you can create a systemd unit:
317 317
 ```console
318 318
 $ cat /etc/systemd/system/mtg.service
319 319
 [Unit]
320
-Description=mtg
320
+Description=mtg - MTProto proxy server
321
+Documentation=https://github.com/9seconds/mtg
322
+After=network.target
321 323
 
322 324
 [Service]
323 325
 ExecStart=/usr/local/bin/mtg run /etc/mtg.toml
324 326
 Restart=always
325 327
 RestartSec=3
328
+DynamicUser=true
326 329
 
327 330
 [Install]
328 331
 WantedBy=multi-user.target

Loading…
Cancel
Save