Optional Configuration
You can set these environment variables to configure the container. They are not required, but can be useful in some cases.
| Env | Default | Example | Description |
|---|---|---|---|
PORT |
51821 |
6789 |
TCP port for Web UI. |
HOST |
0.0.0.0 |
localhost |
IP address web UI binds to. |
INSECURE |
false |
true |
If access over http is allowed |
DISABLE_IPV6 |
false |
true |
If IPv6 support should be disabled |
DISABLE_VERSION_CHECK |
false |
true |
If wg-easy should check for new updates |
TRUSTED_PROXIES |
172.18.0.2,fd00:1234::/64 |
Proxy IP addresses or CIDRs allowed to forward request metadata |
Trusted Proxies¶
Set TRUSTED_PROXIES when wg-easy runs behind a reverse proxy and needs to use
the original host. Multiple IPv4 or IPv6 addresses and CIDRs can be provided as
a comma-separated list:
Only add the source addresses used by your reverse proxy. wg-easy only uses
X-Forwarded-Host and X-Forwarded-For when the request comes from one of
these addresses. The forwarded client address is included in security logs so
that tools such as CrowdSec can identify failed authentication attempts. The
request protocol remains controlled by INSECURE. Invalid addresses prevent
wg-easy from starting so that configuration errors are not silently ignored.
Restart the container after changing this setting.
IPv6 Caveats
Disabling IPv6 will disable the creation of the default IPv6 firewall rules and won't add a IPv6 address to the interface and clients.
You will however still see a IPv6 address in the Web UI, but it won't be used.
This option can be removed in the future, as more devices support IPv6.