diff --git a/README.md b/README.md index 74c446e..67c5718 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ A web user interface to manage your WireGuard setup. - Friendly UI - Authentication - Manage extra client information (name, email, etc.) -- Retrieve client config using QR code / file / email / Telegram +- Retrieve client config using QR code / file / email ![wireguard-ui 0.3.7](https://user-images.githubusercontent.com/37958026/177041280-e3e7ca16-d4cf-4e95-9920-68af15e780dd.png) @@ -39,7 +39,6 @@ docker-compose up | Variable | Description | Default | |-------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------| | `BASE_PATH` | Set this variable if you run wireguard-ui under a subpath of your reverse proxy virtual host (e.g. /wireguard) | N/A | -| `BIND_ADDRESS` | The addresses that can access to the web interface and the port, use unix:///abspath/to/file.socket for unix domain socket. | 0.0.0.0:80 | | `SESSION_SECRET` | The secret key used to encrypt the session cookies. Set this to a random value | N/A | | `SESSION_SECRET_FILE` | Optional filepath for the secret key used to encrypt the session cookies. Leave `SESSION_SECRET` blank to take effect | N/A | | `SESSION_MAX_DURATION` | Max time in days a remembered session is refreshed and valid. Non-refreshed session is valid for 7 days max, regardless of this setting. | 90 | @@ -71,9 +70,6 @@ docker-compose up | `SMTP_AUTH_TYPE` | The SMTP authentication type. Possible values: `PLAIN`, `LOGIN`, `NONE` | `NONE` | | `SMTP_ENCRYPTION` | The encryption method. Possible values: `NONE`, `SSL`, `SSLTLS`, `TLS`, `STARTTLS` | `STARTTLS` | | `SMTP_HELO` | Hostname to use for the HELO message. smtp-relay.gmail.com needs this set to anything but `localhost` | `localhost` | -| `TELEGRAM_TOKEN` | Telegram bot token for distributing configs to clients | N/A | -| `TELEGRAM_ALLOW_CONF_REQUEST` | Allow users to get configs from the bot by sending a message | `false` | -| `TELEGRAM_FLOOD_WAIT` | Time in minutes before the next conf request is processed | `60` | ### Defaults for server configuration diff --git a/custom/js/helper.js b/custom/js/helper.js index d98eacb..931320a 100644 --- a/custom/js/helper.js +++ b/custom/js/helper.js @@ -1,20 +1,5 @@ function renderClientList(data) { $.each(data, function(index, obj) { - // render telegram button - let telegramButton = '' - if (obj.Client.telegram_userid) { - telegramButton = `
- -
` - } - - let telegramHtml = ""; - if (obj.Client.telegram_userid && obj.Client.telegram_userid.length > 0) { - telegramHtml = `` - } - // render client status css tag style let clientStatusHtml = '>' if (obj.Client.enabled) { @@ -48,20 +33,19 @@ function renderClientList(data) {
Download
-
+
-
+
- ${telegramButton}
- -
- Additional configuration - -
- - -
-
- - -