mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-08-28 19:48:01 +08:00
* feat: allow custom subdomains in create UI * test: stabilize custom subdomain browser flow * test: fix normalized address expectation * fix: gate custom subdomain input by setting * fix: scope custom subdomains to random domains * test: recreate random subdomain manually * refactor: minimize custom subdomain changes * refactor: reduce custom subdomain changes * test: fix custom subdomain locator * refactor: clarify manual subdomain validation * test: target visible custom subdomain input * refactor: simplify manual subdomain validation * refactor: use subdomain mode selector * style: stack subdomain modes vertically * test: click visible subdomain mode labels
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
name = "cloudflare_temp_email"
|
|
main = "src/worker.ts"
|
|
compatibility_date = "2025-04-01"
|
|
compatibility_flags = [ "nodejs_compat" ]
|
|
keep_vars = true
|
|
|
|
[vars]
|
|
PREFIX = "TMP"
|
|
DEFAULT_DOMAINS = []
|
|
DOMAINS = ["TEST.EXAMPLE.COM", "MANUAL.EXAMPLE.COM"]
|
|
RANDOM_SUBDOMAIN_DOMAINS = ["TEST.EXAMPLE.COM"]
|
|
CREATE_ADDRESS_DEFAULT_DOMAIN_FIRST = true
|
|
USER_ROLES = [
|
|
{ domains = ["TEST.EXAMPLE.COM"], role = "case-role", prefix = "ROLE" },
|
|
{ domains = [], role = "empty-role", prefix = "EMPTY" },
|
|
]
|
|
JWT_SECRET = "e2e-test-secret-key"
|
|
BLACK_LIST = ""
|
|
ENABLE_USER_CREATE_EMAIL = true
|
|
ENABLE_USER_DELETE_EMAIL = true
|
|
ENABLE_AUTO_REPLY = true
|
|
DEFAULT_SEND_BALANCE = 10
|
|
ENABLE_ADDRESS_PASSWORD = true
|
|
DISABLE_ADMIN_PASSWORD_CHECK = true
|
|
ADMIN_PASSWORDS = '["e2e-admin-pass"]'
|
|
ENABLE_WEBHOOK = true
|
|
E2E_TEST_MODE = true
|
|
CLEANUP_BATCH_SIZE = 10
|
|
SMTP_CONFIG = """
|
|
{"TEST.EXAMPLE.COM":{"host":"mailpit","port":1025,"secure":false}}
|
|
"""
|
|
|
|
[[kv_namespaces]]
|
|
binding = "KV"
|
|
id = "e2e-test-kv-00000000-0000-0000-0000-000000000000"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "e2e-temp-email"
|
|
database_id = "e2e-test-db-00000000-0000-0000-0000-000000000000"
|