mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-29 23:41:28 +00:00
a742e66cc3
We should allow manual SelfPrivacy installations on unsupported server providers. The ServerProvider enum is one of the gatekeepers that prevent this and we can change it easily as not much server-side logic rely on this. The next step would be manual DNS management, but it would be much more involved than just adding the enum value.
27 lines
542 B
Python
27 lines
542 B
Python
"""Enums representing different service providers."""
|
|
from enum import Enum
|
|
import strawberry
|
|
|
|
|
|
@strawberry.enum
|
|
class DnsProvider(Enum):
|
|
CLOUDFLARE = "CLOUDFLARE"
|
|
DIGITALOCEAN = "DIGITALOCEAN"
|
|
DESEC = "DESEC"
|
|
|
|
|
|
@strawberry.enum
|
|
class ServerProvider(Enum):
|
|
HETZNER = "HETZNER"
|
|
DIGITALOCEAN = "DIGITALOCEAN"
|
|
OTHER = "OTHER"
|
|
|
|
|
|
@strawberry.enum
|
|
class BackupProvider(Enum):
|
|
BACKBLAZE = "BACKBLAZE"
|
|
NONE = "NONE"
|
|
# for testing purposes, make sure not selectable in prod.
|
|
MEMORY = "MEMORY"
|
|
FILE = "FILE"
|