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
5 changes: 5 additions & 0 deletions src/lib/postguard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export const retryStatus = writable<RetryEvent | null>(null)
export const pg = new PostGuard({
pkgUrl: PKG_URL,
cryptifyUrl: FILEHOST_URL,
// Identifies traffic from this site in cryptify's per-channel
// upload metrics. Without this, cryptify falls back to matching the
// browser Origin header, which collides with the Outlook add-in
// (also served from a *.postguard.eu host).
headers: { 'X-Cryptify-Source': 'website' },
...(CHUNK_SIZE !== undefined && { uploadChunkSize: CHUNK_SIZE }),
retry: {
// Defaults (5 attempts, 500ms initial) exhaust the retry budget in
Expand Down