mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-08-02 01:04:26 +02:00
wireguard_webadmin integration
This commit is contained in:
parent
fe604a8a49
commit
19b714dc21
13 changed files with 274 additions and 1 deletions
14
integration_manager/models.py
Normal file
14
integration_manager/models.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from django.db import models
|
||||
|
||||
|
||||
class ExternalIntegration(models.Model):
|
||||
name = models.CharField(max_length=100, unique=True)
|
||||
integration_type = models.CharField(max_length=100, choices=(('wireguard_webadmin', 'WireGuard WebAdmin'), ))
|
||||
integration_url = models.URLField()
|
||||
wireguard_webadmin_default_user_level = models.PositiveIntegerField(default=0, choices=((0, 'Do not create users'), (10, 'Debugging Analyst'), (20, 'View Only User'), (30, 'Peer Manager'), (40, 'Manager'), (50, 'Administrator')))
|
||||
token = models.CharField(max_length=100)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
Loading…
Add table
Add a link
Reference in a new issue