Skip to content

rlex/ansible-role-mtprotoproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mtprotoproxy ansible role

Will clone mtprotoproxy from git (stable branch by default), generate config from vars and install systemd service file
Also installs dependencies based on system (uvloop is available in ubuntu but not in debian)
Tested on Debian 9 and Ubuntu 18.04 LTS. Should work with any system if you adjust vars for operating system.

Vars example (host/group vars):

mtprotoproxy_branch: master
mtprotoproxy_port: 31812
mtprotoproxy_ad_tag: 00000000000000000000000000000000
mtprotoproxy_secrets:
  - [user1, 00000000000000000000000000000001]
  - [user2, 00000000000000000000000000000002]
  • mtprotoproxy_ad_tag is optional, if you don't need sponsored channel, then you can just skip it.
  • mtprotoproxy_branch is set to stable by default (master in example)
  • mtprotoproxy_port should be set to port >1024 since mtprotoproxy will be working from "nobody" user and only root can use ports below 1024
  • mrprotoproxy_secrets can have any numbers of users, but should have at least 1

Releases

No releases published

Packages

No packages published