{"id":18783589,"url":"https://github.com/cimon-io/mtproxy-playbook","last_synced_at":"2025-06-16T16:04:57.837Z","repository":{"id":66296930,"uuid":"135721749","full_name":"cimon-io/mtproxy-playbook","owner":"cimon-io","description":"Ansible playbook for installing MTProxy (Telegram proxy)","archived":false,"fork":false,"pushed_at":"2018-06-01T13:41:47.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-29T11:44:58.342Z","etag":null,"topics":["ansible","ansible-playbook","mtproto","mtproto-proxy","telegram-proxy"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cimon-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-01T13:35:28.000Z","updated_at":"2018-06-01T13:47:06.000Z","dependencies_parsed_at":"2023-03-22T10:18:07.895Z","dependency_job_id":null,"html_url":"https://github.com/cimon-io/mtproxy-playbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fmtproxy-playbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fmtproxy-playbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fmtproxy-playbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cimon-io%2Fmtproxy-playbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cimon-io","download_url":"https://codeload.github.com/cimon-io/mtproxy-playbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239699579,"owners_count":19682574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","mtproto","mtproto-proxy","telegram-proxy"],"created_at":"2024-11-07T20:39:49.527Z","updated_at":"2025-02-19T17:16:33.123Z","avatar_url":"https://github.com/cimon-io.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Requirements: debian/ubuntu vm\n\nSteps:\n- create admin user\n- configure sshd\n- install and configure firewall (ufw)\n- install mtproxy\n\nHowTo:\n\n1. create vm (with debian/ubuntu distro)\n2. clone repo\n\n  ```bash\n  git clone https://github.com/cimon-io/mtproxy-playbook.git\n  cd mtproxy-playbook\n  ```\n\n3. download roles\n\n  ```bash\n  ansible-galaxy install -r requirements.yml\n  ```\n\n4. configure\n  - set ansible_host options in `inventory/production/host_vars/mtproxy-01`\n  - copy your public ssh key to `files/public_keys/your_name.pub`\n\n    `# cp ~/.ssh/id_rsa.pub files/public_keys/$USER.pub`\n\n  - edit vars/users.yml file: replace your_name with your users name\n\n    `# sed -i \"s/your_name/$USER/g\" vars/users.yml`\n\n  - add `mtproxy_mtproto_secret` variable to vars/proxy.yml\n\n    `# echo \"mtproxy_mtproto_secret: \\\"$(head -c 16 /dev/urandom | xxd -ps)\\\"\" \u003e\u003e vars/proxy.yml`\n\n5. run playbook\n\n  \u003e if python is not installed, run: ansible-playbook -i production prepare.yml -e ansible_user=root\n\n  \u003e ansible_user: root, if you use AWS EC2 with ubuntu - user wil be 'ubuntu'\n\n  \u003e specify --private-key=path-to-private-key if necessary\n\n  `ansible-playbook -i production main.yml -e ansible_user=root`\n\n6. register your proxy with @MTProxybot on Telegram\n7. Add `mtproxy_proxy_tag` variable with your tag to vars/proxy.yml\n\n  `# echo \"mtproxy_proxy_tag: \\\"your_tag_here\\\"\" \u003e\u003e vars/proxy.yml`\n\n8. ... and simply run\n\n  `ansible-playbook -i production main.yml -tags=mtproxy-configure`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimon-io%2Fmtproxy-playbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcimon-io%2Fmtproxy-playbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcimon-io%2Fmtproxy-playbook/lists"}