Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions docs/repos/postguard-dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ var pg = new PostGuard(new PostGuardConfig
PkgUrl = "https://pkg.staging.postguard.eu",
CryptifyUrl = "https://fileshare.staging.postguard.eu"
});
// PkgUrl and CryptifyUrl must be absolute https:// URLs.
// The constructor throws ArgumentException otherwise.
// Set AllowInsecureUrls = true to permit http://localhost for local dev.

var sealed = pg.Encrypt(new EncryptInput
{
Expand Down
7 changes: 5 additions & 2 deletions docs/sdk/dotnet-encryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ var pg = new PostGuard(new PostGuardConfig
});
```

`PkgUrl` and `CryptifyUrl` must be absolute `https://` URLs. The constructor throws `ArgumentException` for any other scheme (including `http://`, `ftp://`, `ws://`), as well as for relative or empty values. Set `AllowInsecureUrls = true` to permit `http://localhost` during local development.

| Option | Type | Required | Description |
|---|---|---|---|
| `PkgUrl` | `string` | Yes | URL of the PKG server |
| `CryptifyUrl` | `string` | No | URL of the Cryptify file storage service. Required for `UploadAsync()`. |
| `PkgUrl` | `string` | Yes | URL of the PKG server. Must be an absolute `https://` URL. |
| `CryptifyUrl` | `string` | No | URL of the Cryptify file storage service. Required for `UploadAsync()`. Must be an absolute `https://` URL. |
| `AllowInsecureUrls` | `bool` | No | Allow `http://localhost` URLs for local dev. Default `false`. Any non-`https://` value still throws `ArgumentException`. |
| `Headers` | `Dictionary<string, string>` | No | Custom HTTP headers included in all requests |

## Encrypt
Expand Down
Loading