Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions smsgateway/domain_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func (s DeviceSettings) Validate() error {

// SettingsEncryption contains settings related to message encryption.
type SettingsEncryption struct {
// Passphrase is the encryption passphrase. If nil or empty, encryption is disabled.
Passphrase *string `json:"passphrase,omitempty"`
// Passphrase is the encryption passphrase. If nil or empty, encryption is disabled. Must not be used with Cloud Server.
Passphrase *string `json:"passphrase,omitempty" validate:"omitempty,isdefault"`
}

// SettingsMessages contains settings related to message handling.
Expand Down Expand Up @@ -131,6 +131,6 @@ type SettingsWebhooks struct {
// Must be at least 1 when provided.
RetryCount *int `json:"retry_count,omitempty" validate:"omitempty,min=1"`

// SigningKey is the secret key used for signing webhook payloads.
SigningKey *string `json:"signing_key,omitempty"`
// SigningKey is the secret key used for signing webhook payloads. Must not be used with Cloud Server.
SigningKey *string `json:"signing_key,omitempty" validate:"omitempty,isdefault"`
}