Wireguard configuration without file editor

I want to configure the WireGuard add-on through the add-on configuration to completely avoid using a text editor. To do this, I need to add the private and public keys for the peer and server. However, the private key for the client is not being added. What am I doing wrong? Here is my add-on configuration.

server:
  host: 177.37.187.107
  addresses:
    - 10.10.1.1
  dns:
    - 192.168.0.1
  public_key: JSxaZeBOjbjaVNouxATdnOpryu9bLVmqd/VdScbPHQA=
  private_key: L36svVoi8/VE0Gxd6TD4lCw7jJbc/Bf+JKreXAaX5+U=
peers:
  - name: user-1
    addresses:
      - 10.10.1.2
    endpoint: 177.37.187.107:51821
    allowed_ips: []
    client_allowed_ips:
      - 192.168.0.0/24
      - 10.10.10.0/24
    public_key: QNLXV8lrsPnKOd011DO8g5DWyad6iHJDSVOD6yOqjiE=
    private_key: kRltxveV0CbHv2vFiRU7GMPNB4Ur7UsaM8k5WqZEsJk=

client.conf

[Interface]
Address = 10.10.1.2/24
DNS = 192.168.0.1

[Peer]
PublicKey = JSxaZeBOjbjaVNouxATdnOpryu9bLVmqd/VdScbPHQA=
Endpoint = 177.37.187.107:51821
AllowedIPs = 192.168.0.0/24, 10.10.10.0/24
PersistentKeepalive = 25

Hi Bogdan,

I don’t have an answer to your question, but I suggest you change those keys in your actual instance because sharing your private key in an open forum is not one of the best Ideas I’ve heard about lately.

1 Like

thank you for your time and helpful advice. The private and public keys are not real

1 Like