Add client ALTCHA proof-of-work and Vite env flags for uploads.

Expose enabled/max-number settings and wire altcha-lib for per-upload challenges.
This commit is contained in:
2026-10-23 18:34:09 +02:00
parent 805665745b
commit fe643d9831
6 changed files with 152 additions and 1 deletions
+2
View File
@@ -4,6 +4,8 @@ interface ImportMetaEnv {
readonly VITE_API_BASE_URL: string;
readonly VITE_CLEARNET_DOMAIN: string;
readonly VITE_ONION_HOSTNAME: string;
readonly VITE_ALTCHA_ENABLED: string;
readonly VITE_ALTCHA_MAX_NUMBER: string;
readonly VITE_UPLOAD_MAX_QUEUE_SIZE: string;
readonly VITE_VALIDATION_UPLOAD_MAX_VIEWS_MAX: string;
readonly VITE_VALIDATION_UPLOAD_MAX_IMAGE_BYTES: string;