-
Notifications
You must be signed in to change notification settings - Fork 11
Settings you can set
Кирилл Леонов edited this page Jan 9, 2025
·
1 revision
| Environment variable | Description | Note |
|---|---|---|
| WG_PATH | directory where the main configuration for your wireguard server will be located | I strongly advise you not to change it |
| WG_DEVICE | name for network interface for wireguard | I strongly advise you not to change it |
| WG_DEFAULT_ADDRESS | default address for your clients | It should be specified in the format -> 10.8.0.x
|
| WG_ALLOWED_IPS | allowed ip address | |
| WG_HOST | IP address of your server | This environment variable must be specified when starting the application |
| WG_PORT | udp port for wireguard | |
| WG_DEFAULT_DNS | dns server | |
| WG_PRE_UP | special setting is triggered before starting the wireguard server | |
| WG_PRE_DOWN | special setting is triggered before stopping the wireguard server | |
| WG_POST_UP | special setting is triggered after starting the wireguard server | |
| WG_POST_DOWN | special setting is triggered after stopping the wireguard server | |
| WG_PERSISTENT_KEEPALIVE | node keepalive parameter | |
| AUTH_TOKEN | authorization token for API | You can specify absolutely any string that will be used to authenticate your requests |
| AUTH_DIGEST_TOKEN | password hash for request authorization | You can set this variable to the hash of your password. In this case, your requests will be authorized through it. |
| WEBHOOKS_URL | url for webhooks | |
| CONNECTING_CLIENT_LIMIT | Setting up a subnet mask | The default value is 24. The number 24 indicates the number of bits reserved for the network portion of the address. In this case, it means that the first 24 bits of the IP address are used to identify the network, and the remaining 8 bits (in this case, x) can be used to identify individual devices (hosts) on that network. A mask of /24 thus corresponds to a subnet mask of 255.255.255.0, allowing for up to 256 addresses (from 10.8.1.0 to 10.8.1.255), of which 254 can be used for devices |