eduardogsilva / routerfleet

RouterFleet: An open-source solution for centralized router and network equipment management. Initially focused on Mikrotik devices, it offers simplified backups, updates, and security. Perfect for managing a fleet of devices efficiently. Join us in evolving RouterFleet's capabilities
MIT License
65 stars 3 forks source link

"Error connecting to API" when trying to link to wireguard_webadmin #29

Closed Zebble closed 4 months ago

Zebble commented 4 months ago

Does this feature work?

I've tried to integrate RouterFleet with wireguard_webadmin and I just get "Error connecting to API". There are no additional details in the logs, even with DEBUG_MODE set to True on both RouterFleet and wireguard_webadmin.

For "Integration url" I've tried both "https://<FQDN of wireguard_webadmin" and "https://<ip address of wireguard_webadmin" to no avail.

I assume that "Token" is the same as "API Key" is the same as "uuid"/"routerfleet_key"?

eduardogsilva commented 4 months ago

Hello @Zebble , yes this feature works and I just tested it.

Please take a look in the line 63 of forms.py

You are hitting the first exception of the validation. This means that the "requests.get" command could not connect to wireguard webadmin.

This is Probably due to one of the following:

Your integration url should look like: https://wireguard-webadmin.example.com/

Your token should be the uuid that you generated on wireguard_webadmin container inside the file /etc/wireguard/routerfleet_key

eduardogsilva commented 4 months ago

Hello, I will be closing this issue since I believe that it's clarified now. Please reopen this issue if you still need assistance.

Cheers!