Configure wireguard with luci

Hello!

How do you set up wireguard with luci?

I can't set up an interface with luci without opening a terminal for "wg genkey" and when adding peers I use the terminal again hitting "wg genkey | tee /dev/tty | wg pubkey".

Is there any reason why luci does not generate those values?

I looked at the code of the luci wireguard protocol but unfortunately it's javascript and i never wrote a line in this language.

But it seems to be not that hard to add a butten to generate the private-key for the interface and another button which will fill the peer-section with public-key and private/public key suggestions for the client.

Found some code here.

So my question before start learning javascript:
any concerns to fill those values in lucy?

Robert