Files
lucioandClaude Opus 5.5 c87aad0254 Risk-based robot check with server-issued photo keys
The main page and direct photo links open without a prompt. Each
photo's pool is sealed with its own key, handed out by POST /k
(served by the daemon in serve and export mode). The hold-and-solve
card appears only for low-entropy clicks into a collection, too many
low-entropy landings from one IP, or more than photo_limit photos per
window, with escalating proof-of-work and a 429 cap. Build ids now
sort chronologically within the same second.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 22:45:50 -08:00

46 lines
928 B
TOML

[server]
mode = "export"
listen = "127.0.0.1:8080"
base_url = "https://photos.luciochen.com"
trusted_proxies = ["127.0.0.1/32", "::1/128"]
client_ip_header = "X-Forwarded-For"
[paths]
albums = "/srv/luphoto/albums"
output = "/var/lib/luphoto/site"
cache = "/var/cache/luphoto"
[images]
tile_size = 512
overlap = 1
format = "webp"
quality = { top = 90, mid = 88, low = 88 }
min_levels = 6
seed_px = 48
tile_names = "hashed"
scramble_cells = true
min_grid = 3
[loading]
budget_ms = 3000
max_dpr = 2.0
concurrency = 6
[build]
watch = true
debounce = "30s"
workers = 2
keep_builds = 3
[protection]
block_context_menu = true
hotlink_allow = ["photos.luciochen.com"]
decoys = 4
gate = "server"
pow_bits = 20
photo_limit = 400
min_entropy = 20
landing_limit = 5
window = "10m"
pass_ttl = "12h"