mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 22:36:17 +00:00
add default entries creation on post-migrate signal and refactor application model logic
This commit is contained in:
@@ -2,14 +2,12 @@ import json
|
||||
import os
|
||||
|
||||
from app_gateway.models import (
|
||||
AccessPolicy, Application, ApplicationPolicy
|
||||
AccessPolicy, Application, ApplicationPolicy, RESERVED_APP_NAME
|
||||
)
|
||||
from gatekeeper.models import (
|
||||
AuthMethod, GatekeeperGroup, GatekeeperIPAddress, GatekeeperUser
|
||||
)
|
||||
|
||||
RESERVED_APP_NAME = 'wireguard_webadmin'
|
||||
|
||||
POLICY_TYPE_MAP = {
|
||||
'public': 'bypass',
|
||||
'protected': 'protected',
|
||||
|
||||
Reference in New Issue
Block a user