perara / wg-manager

A easy to use WireGuard dashboard and management tool
MIT License
594 stars 74 forks source link

Deployment via SSH #3

Open stv0g opened 4 years ago

stv0g commented 4 years ago

Hi @perara,

what are your plans regarding multi-server support?

I would love to use your tool in multiple locations. Ideally I would run the frontend itself in my Kubernetes Cluster.

Could the multi-server support be implemented by adding a deployment option via SSH? So only a single manager instance?

perara commented 4 years ago

Yes, the plan is to implement what you describe. I'm thinking of the following:

  1. Create keys for the dashboard
  2. Manually add keys to the server (during a wizard of some sort)
  3. Connect to server via SSH and ensure that wireguard is installed, if docker option is selected, we check for docker access as well.
  4. Create database record with required/inserted info -- ON start
  5. push configuration to server
  6. start server

Part 3 to 6 (and probably a few intermediate steps, are done using ansible)