Ease debugging

use fully qualified node name
This commit is contained in:
Сергей Прохоров 2018-10-22 22:21:30 +02:00
parent 1253fdc844
commit d4b8c76cdf
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,8 @@ config/prod-sys.config: config/sys.config.example
config/prod-vm.args: config/vm.args.example
[ -f $@ ] && diff $^ $@ || true
cp -i -b $^ $@
@IP=$(shell curl -s http://ip.seriyps.ru || curl -s https://digitalresistance.dog/myIp) \
&& sed -i s/@0\.0\.0\.0/@$${IP}/ $@
user:
sudo useradd -r $(USER) || true

View file

@ -1,4 +1,4 @@
-sname mtproto_proxy
-name mtproto_proxy@0.0.0.0
-setcookie mtproto-proxy-cookie