Add interactive installer script

This commit is contained in:
Sergey Prokhorov 2019-08-13 18:04:07 +02:00
parent 5e601bce3e
commit 0c2aa335ca
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337
2 changed files with 21 additions and 1 deletions

View file

@ -38,7 +38,7 @@ $(LOGDIR):
install: user $(LOGDIR)
mkdir -p $(prefix)
cp -n -r _build/prod/rel/mtp_proxy $(prefix)/mtp_proxy/
cp -r _build/prod/rel/mtp_proxy $(prefix)/
mkdir -p $(prefix)/mtp_proxy/log/
chmod 777 $(prefix)/mtp_proxy/log/
install -D config/mtproto-proxy.service $(SERVICE)

View file

@ -23,6 +23,26 @@ Features
* Small codebase compared to official one, code is covered by automated tests
* A lots of metrics could be exported (optional)
How to install - one-line interactive installer
-----------------------------------------------
This command will run [interactive script](https://gist.github.com/seriyps/dc00ad91bfd8a2058f30845cd0daed83)
that will install and configure proxy for your Ubuntu 18.04 server.
It will ask if you want to change default port/secret/ad-tag/protocols:
```bash
curl -L -o mtp_install.sh https://git.io/fj5ru && bash mtp_install.sh
```
You can also just provide port/secret/ad-tag/protocols as command line arguments:
```bash
curl -L -o mtp_install.sh https://git.io/fj5ru && bash mtp_install.sh -p 443 -s d0d6e111bada5511fcce9584deadbeef -t dcbe8f1493fa4cd9ab300891c0b5b326 -a dd -a tls
```
It does the same as described in [How to start OS-install - detailed](#how-to-start-os-install---detailed) but
generates config-file for you automatically.
How to start - docker
---------------------