From 353984d6065e0324ecff396fc188b363a6ff4680 Mon Sep 17 00:00:00 2001 From: lalanza808 Date: Wed, 13 May 2020 00:57:50 -0700 Subject: [PATCH] update static and javascript --- README.md | 2 ++ static/css/main.css | 11 +++++++++++ static/sass/main.scss | 11 +++++++++++ templates/add_peer.html.tera | 36 +++++++++++++++++++++++++++++++----- 4 files changed, 55 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fec97f8..91014ad 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ export WGAS_ENDPOINT=127.0.0.1 export WGAS_SUDO=false # set to true if deploying on live VPN instance export WGAS_DNS=1.1.1.1 # set to dns you control if possible export WGAS_ROUTE=0.0.0.0/0 +export WGAS_INTERFACE=wg0 +export WGAS_NETWORK=10.66.66.1/24 export WGAS_PORT=51820 export WGAS_PUBKEY=$(wg genkey | wg pubkey) ``` diff --git a/static/css/main.css b/static/css/main.css index ee15d58..8d94a1a 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -2146,4 +2146,15 @@ button:active, margin: 0 auto; } +#command-result { + font-weight: bold; + color: #49a865; + padding-top: 1em; +} + +.peer-text { + margin: 0; + padding: 0; +} + /*# sourceMappingURL=main.css.map */ diff --git a/static/sass/main.scss b/static/sass/main.scss index 69cb796..bf18b9b 100644 --- a/static/sass/main.scss +++ b/static/sass/main.scss @@ -1177,3 +1177,14 @@ display: block; margin: 0 auto; } + +#command-result { + font-weight: bold; + color: #49a865; + padding-top: 1em; +} + +.peer-text { + margin: 0; + padding: 0; +} diff --git a/templates/add_peer.html.tera b/templates/add_peer.html.tera index a983b9f..9aed953 100644 --- a/templates/add_peer.html.tera +++ b/templates/add_peer.html.tera @@ -9,24 +9,30 @@

Add A Peer

-

Use this form to add new peers to the WireGuard VPN. Input an IP address for this peer to use within the server's network CIDR range:
{% if state.interface %}{{ state.interface }}{% else %}not defined{% endif %}

+

Use this form to generate a new peer configuration and keys.

+

When you're ready, use the below config to setup a new VPN connection from your device.

+

Input a name and an IP address for this peer to use within the server's network:
{% if state.network %}{{ state.network }}{% else %}not defined{% endif %}

+

Refresh the page to get new keys generated.

+ -


     
+
+