Add install and run scripts
This commit is contained in:
parent
da175ae7dc
commit
27cb468e02
2 changed files with 19 additions and 0 deletions
16
install.sh
Executable file
16
install.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
caddyVersion=2.1.1
|
||||||
|
sirtunnelVersion=0.1.0
|
||||||
|
|
||||||
|
caddyGz=caddy_${caddyVersion}_linux_amd64.tar.gz
|
||||||
|
curl -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz}
|
||||||
|
tar xvf ${caddyGz}
|
||||||
|
rm ${caddyGz}
|
||||||
|
rm LICENSE
|
||||||
|
rm README.md
|
||||||
|
|
||||||
|
sudo setcap 'cap_net_bind_service=+ep' caddy
|
||||||
|
|
||||||
|
curl -O -L https://github.com/anderspitman/SirTunnel/releases/download/${sirtunnelVersion}/sirtunnel
|
||||||
|
chmod +x sirtunnel
|
3
run_server.sh
Executable file
3
run_server.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
caddy run --config caddy_config.json
|
Loading…
Reference in a new issue