Simple way of peering two nodes. Only one needs the address and port. Both can be defined though. But when one is behind a firewall or nat. That would be the one which has only the public key and address.
wg set wg0 peer [PEER PUBLICKEY] allowed-ips 10.0.0.2/32 endpoint 22.214.171.124:58842
wg set wg0 peer [PEER PUBLICKEY] allowed-ips 10.0.0.1/32 persistent-keepalive 25