setting up cli opts and improving config generation
parent
a9c4a7efa3
commit
72d8a3f2e0
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
add-apt-repository ppa:wireguard/wireguard -y
|
||||
apt install wireguard -y
|
||||
umask 077
|
||||
wg genkey | tee privatekey | wg pubkey > publickey
|
||||
# Install WireGuard
|
||||
apt-get install -y software-properties-common
|
||||
add-apt-repository -y ppa:wireguard/wireguard
|
||||
apt-get update
|
||||
apt-get install -y "linux-headers-$(uname -r)"
|
||||
apt-get install -y wireguard iptables
|
||||
|
@ -1 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<p>Here's a client config for you:</p>
|
||||
<pre style="color: red;">
|
||||
{{ full_config }}
|
||||
</pre>
|
||||
</div>
|
||||
<img src="data:image/svg+xml;base64,{{ qr_code }}" width=200 class="center">
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue