Browse Source

adding setting environment variable

pull/955/head
valorisa 2 years ago
parent
commit
d50330bbc6
  1. 9
      README.md

9
README.md

@ -21,6 +21,9 @@ You have found the easiest way to install & manage WireGuard on any Linux host !
* Statistics for which clients are connected. * Statistics for which clients are connected.
* Tx/Rx charts for each connected client. * Tx/Rx charts for each connected client.
* Gravatar support. * Gravatar support.
* Automatic Light / Dark Mode
* Multilanguage Support
* UI_TRAFFIC_STATS (default off)
## Requirements ## Requirements
@ -31,7 +34,7 @@ You have found the easiest way to install & manage WireGuard on any Linux host !
### 1. Install Docker ### 1. Install Docker
If you haven't installed Docker yet, install it by running: If you haven't installed Docker yet, install it by running :
```bash ```bash
curl -sSL https://get.docker.com | sh curl -sSL https://get.docker.com | sh
@ -77,7 +80,7 @@ Are you enjoying this project? [Buy me a beer!](https://github.com/sponsors/WeeJ
These options can be configured by setting environment variables using `-e KEY="VALUE"` in the `docker run` command. These options can be configured by setting environment variables using `-e KEY="VALUE"` in the `docker run` command.
| Env | Default | Example | Description | | Env | Default | Example | Description |
| ------------------------- | ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------ | | ------------------------- | ----------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| `PASSWORD` | - | `foobar123` | When set, requires a password when logging in to the Web UI. | | `PASSWORD` | - | `foobar123` | When set, requires a password when logging in to the Web UI. |
| `WG_HOST` | - | `vpn.myserver.com` | The public hostname of your VPN server. | | `WG_HOST` | - | `vpn.myserver.com` | The public hostname of your VPN server. |
| `WG_DEVICE` | `eth0` | `ens6f0` | Ethernet device the wireguard traffic should be forwarded through. | | `WG_DEVICE` | `eth0` | `ens6f0` | Ethernet device the wireguard traffic should be forwarded through. |
@ -91,6 +94,8 @@ These options can be configured by setting environment variables using `-e KEY="
| `WG_POST_UP` | `...` | `iptables ...` | See [config.js](https://github.com/WeeJeWel/wg-easy/blob/master/src/config.js#L20) for the default value. | | `WG_POST_UP` | `...` | `iptables ...` | See [config.js](https://github.com/WeeJeWel/wg-easy/blob/master/src/config.js#L20) for the default value. |
| `WG_PRE_DOWN` | `...` | - | See [config.js](https://github.com/WeeJeWel/wg-easy/blob/master/src/config.js#L27) for the default value. | | `WG_PRE_DOWN` | `...` | - | See [config.js](https://github.com/WeeJeWel/wg-easy/blob/master/src/config.js#L27) for the default value. |
| `WG_POST_DOWN` | `...` | `iptables ...` | See [config.js](https://github.com/WeeJeWel/wg-easy/blob/master/src/config.js#L28) for the default value. | | `WG_POST_DOWN` | `...` | `iptables ...` | See [config.js](https://github.com/WeeJeWel/wg-easy/blob/master/src/config.js#L28) for the default value. |
| `LANG` | `en` | `de` | Web UI language (Supports: en, ua, ru, tr, no, pl, fr, de, ca, es, ko, vi, nl, is, pt, chs, cht, it, th, hi). |
| `UI_TRAFFIC_STATS` | `false` | `true` | Enable detailed RX / TX client stats in Web UI |
> If you change `WG_PORT`, make sure to also change the exposed port. > If you change `WG_PORT`, make sure to also change the exposed port.

Loading…
Cancel
Save