GithubHelp home page GithubHelp logo

mtproxysystemd's Introduction

MTProxy Systemd Service

Merged to https://github.com/aquigni/TON-MTProxy.git

Deploying your own MTProxy as Systemd service

nano /lib/systemd/system/mtproxyd.service

[Unit]
Description=MTproxy Public service
After=network.target
StartLimitIntervalSec=0


[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=<path/to>/mtproto-proxy -6 -u nobody -p <stat-port> -H <listen-port> -S <secret> --aes-pwd <path/to>/proxy-secret <path/to>/proxy-multi.conf -P <promo-tag> -M 8

[Install]
WantedBy=multi-user.target

setcap 'cap_net_bind_service=+ep' <path/to>/mtproto-proxy

systemctl daemon-reload
systemctl start mtproxyd
systemctl status mtproxyd
systemctl enable mtproxyd

mtproxysystemd's People

Contributors

aquigni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mtproxysystemd's Issues

Script is not working as it should

Hi.
Thank you for making this great shell script. it can be very useful as it simplifies the mtproxyd installation and deployment.

By looking at your code i figured it starts to do everything, like it asks you if you have mtproxyd, want to use already downloaded one or it downloads it itself. but when i ran it ( /opt/mtproxyd/mtproxyd.sh start), it went straight to wget and didnt send the url to it. so wget returned wget: missing URL and then the script asked me for secret word.
I think it should first query me for mtproxyd location. right?

Should i use this script in a specific way?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.