18 lines
531 B
Django/Jinja
18 lines
531 B
Django/Jinja
[Interface]
|
|
{% if wg_client_private_key is defined and wg_client_private_key != None and wg_client_private_key != ''%}
|
|
PrivateKey = {{wg_client_private_key}}
|
|
{% else%}
|
|
|
|
# Public and private keys were pre generated by client
|
|
# Insert private key below and uncomment in order to use the present configuration
|
|
# PrivateKey =
|
|
|
|
{% endif %}
|
|
|
|
Address = {{wg_client_address}}
|
|
|
|
[Peer]
|
|
PublicKey = {{wg_server_public_key.stdout}}
|
|
AllowedIPs = {{ allowed_ips | join(', ') }}
|
|
Endpoint = {{ wg_server }}:{{ wg_port }}
|
|
PersistentKeepalive = 25 |