Wanting to be able to use my own domain name in the wireguard client configs, I managed to track down the location where it could be set just before the QR code is generated.

Use either WinSCP or ssh to go to the /www/src/temple/wgserver directory and edit the index.js file. I recommend using Notepad ++ to edit the .js file with the JSTool plugin. It helps to display the file in a very structured format that is easy on the eyes.

  1. Look for the line: obj.end_point = result.end_point;
  2. Hit enter after the ;
  3. Type in: obj.end_point = “<your.domain.name>:<port_number>”;
  4. Save and exit. Refresh your web page of the router and now when you hit the show configuration icon, and review the plain text info, you should see your domain name therein rather than your resolved public IP

Hoping this could be easily configurable via the awesome GUI rather than getting in under the hood.

1 Like