Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

docs: improve cloudflare email worker intake guide (#975)

Andreas Frank882fee6e7334
diff --git a/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx b/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx
index 569c14c7..a245a457 100644
--- a/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx
+++ b/apps/docs/src/content/docs/03-guides/02-intake-emails-with-cf-email-worker.mdx
@@ -87,11 +87,11 @@ The code for the Email Worker proxy is available in the [papra-hq/email-proxy](h
# Tell your Papra instance that it can generate any email address from the
# domain you setup in the Email Worker as it's a wildcard redirection
- INTAKE_EMAILS_DRIVER=random-username
+ INTAKE_EMAILS_DRIVER=catch-all
# This is the domain from which the intake email will be generated
# eg. `domain.com`
- INTAKE_EMAILS_EMAIL_GENERATION_DOMAIN=papra.email
+ INTAKE_EMAILS_CATCH_ALL_DOMAIN=papra.email
# This is the secret key to authenticate the webhook requests
# set the same as the `WEBHOOK_SECRET` variable in the Email Worker
diff --git a/apps/docs/src/docker-compose-generator/dc-generator.astro b/apps/docs/src/docker-compose-generator/dc-generator.astro
index cdf91c3a..9bb63f05 100644
--- a/apps/docs/src/docker-compose-generator/dc-generator.astro
+++ b/apps/docs/src/docker-compose-generator/dc-generator.astro
@@ -112,7 +112,7 @@ const defaultCommand = `mkdir -p ./app-data/{db,documents} && docker compose up
<div class="flex items-center gap-2 mt-0 w-full">
<select class="input-field mt-0" id="intake-email-driver">
<option value="owlrelay" class="bg-background">OwlRelay</option>
- <option value="random-username" class="bg-background">Cloudflare Email Worker</option>
+ <option value="catch-all" class="bg-background">Cloudflare Email Worker</option>
</select>
</div>
</div>
@@ -294,7 +294,7 @@ function getDockerComposeYml() {
intakeEmailEnabled && `INTAKE_EMAILS_WEBHOOK_SECRET=${webhookSecret}`,
intakeEmailEnabled && intakeDriver === 'owlrelay' && owlrelayApiKeyInput.value && `OWLRELAY_API_KEY=${owlrelayApiKeyInput.value}`,
intakeEmailEnabled && intakeDriver === 'owlrelay' && owlrelayWebhookUrlInput.value && `OWLRELAY_WEBHOOK_URL=${owlrelayWebhookUrlInput.value}`,
- intakeEmailEnabled && intakeDriver === 'random-username' && cfEmailDomainInput.value && `INTAKE_EMAILS_EMAIL_GENERATION_DOMAIN=${cfEmailDomainInput.value}`,
+ intakeEmailEnabled && intakeDriver === 'catch-all' && cfEmailDomainInput.value && `INTAKE_EMAILS_CATCH_ALL_DOMAIN=${cfEmailDomainInput.value}`,
].flat().filter(Boolean);
const volumes = [
@@ -426,7 +426,7 @@ function handleIntakeDriverChange() {
owlrelayConfig.style.display = driver === 'owlrelay' ? 'block' : 'none';
}
if (cfWorkerConfig) {
- cfWorkerConfig.style.display = driver === 'random-username' ? 'block' : 'none';
+ cfWorkerConfig.style.display = driver === 'catch-all' ? 'block' : 'none';
}
updateDockerCompose();