The Worker now runs first for every request except the content-hashed bundles under /assets/ (run_worker_first: ["/*", "!/assets/*"]) and counts it against a per-client limit before serving it: - SITE_LIMITER: pages and public files, 120 requests / 60 s - API_LIMITER: every /api/* request, 60 / 60 s - VERIFY_LIMITER: /api/turnstile/verify on top, 30 / 60 s (unchanged) Over the limit, pages get a plain-text 429 in the four UI languages and the API a JSON 429 (rate_limited); both carry Retry-After: 60. Clients are keyed on their IPv4 address or the /64 of their IPv6 address, never logged. Pages still go through env.ASSETS.fetch(), so _headers, _redirects and the SPA fallback apply as before. A failing limiter lets requests through. Previews get their own counters (namespace_id 4204/4206). Docs: DEPLOYMENT, PRIVACY (wording only, nothing new collected, no re-consent), SECURITY, CONTRIBUTING, READMEs, CLAUDE.md, ROADMAP, CHANGELOG. Version 2.0.2 (versionCode 20002). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.3 KiB
TOML
45 lines
1.3 KiB
TOML
[package]
|
|
name = "jsonprism"
|
|
version = "2.0.2"
|
|
description = "Disperse JSON into many formats."
|
|
authors = ["poli0981 <code@poli0981.dev>"]
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/poli0981/jsonPrism"
|
|
homepage = "https://jsonprism.poli0981.dev"
|
|
edition = "2021"
|
|
rust-version = "1.90"
|
|
|
|
# Disable the default `main.rs` binary lookup; we want a library + bin.
|
|
[lib]
|
|
name = "jsonprism_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-fs = "2"
|
|
tauri-plugin-opener = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# Desktop-only: prevent multiple JSONPrism windows / processes when the user
|
|
# launches the app while it's already open. The plugin focuses the existing
|
|
# window instead of spawning a new instance.
|
|
[target.'cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))'.dependencies]
|
|
tauri-plugin-single-instance = "2"
|
|
|
|
[features]
|
|
# this feature is used for production builds or when `devUrl` points to the
|
|
# filesystem and the built-in dev server is disabled.
|
|
custom-protocol = ["tauri/custom-protocol"]
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = "s"
|
|
strip = true
|