Commit Graph

246 Commits

Author SHA1 Message Date
58a0255c78 redis-connect-fix
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Failing after 7s
CI / test (push) Failing after 10m3s
2025-09-02 18:17:12 +03:00
b3a6b4fd34 Add Redis URL logging for debugging connection issues 2025-09-02 18:10:25 +03:00
7746d1f38e [0.6.1] - 2025-09-02
Some checks failed
CI / lint (push) Successful in 2m11s
Deploy / deploy (push) Has been skipped
CI / test (push) Failing after 9m6s
### 🚀 Изменено - Упрощение архитектуры
- **Генерация миниатюр**: Полностью удалена из Quoter, теперь управляется Vercel Edge API
- **Очистка legacy кода**: Удалены все функции генерации миниатюр и сложность
- **Документация**: Сокращена с 17 файлов до 7, следуя принципам KISS/DRY
- **Смена фокуса**: Quoter теперь сосредоточен на upload + storage, Vercel обрабатывает миниатюры
- **Логирование запросов**: Добавлена аналитика источников для оптимизации CORS whitelist
- **Реализация таймаутов**: Добавлены настраиваемые таймауты для S3, Redis и внешних операций
- **Упрощенная безопасность**: Удален сложный rate limiting, оставлена только необходимая защита upload
- **Vercel интеграция**: Добавлена поддержка Vercel Edge API с CORS и оптимизированными заголовками
- **Redis graceful fallback**: Приложение теперь работает без Redis с предупреждениями вместо паники
- **Умная логика ответов**: Автоматическое определение Vercel запросов и оптимизированные заголовки
- **Консолидация документации**: Объединены 4 Vercel документа в один comprehensive guide

### 📝 Обновлено
- Консолидирована документация в практическую структуру:
  - Основной README.md с быстрым стартом
  - docs/SETUP.md для конфигурации и развертывания
  - Упрощенный features.md с фокусом на основную функциональность
  - docs/vercel-frontend-migration.md - единый comprehensive guide для Vercel интеграции
- Добавлен акцент на Vercel по всему коду и документации
- Обновлены URL patterns в документации: quoter.discours.io → files.dscrs.site

### 🗑️ Удалено
- Избыточные файлы документации (api-reference, deployment, development, и т.д.)
- Дублирующийся контент в нескольких документах
- Излишне детальная документация для простого файлового прокси
- 4 отдельных Vercel документа: vercel-thumbnails.md, vercel-integration.md, hybrid-architecture.md, vercel-og-integration.md

💋 **Упрощение**: KISS принцип применен - убрали избыточность, оставили суть.
2025-09-02 14:39:54 +03:00
7973ba0027 [0.6.1] - 2025-09-02
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Failing after 8s
CI / test (push) Failing after 10m26s
### 🚀 Изменено - Упрощение архитектуры
- **Генерация миниатюр**: Полностью удалена из Quoter, теперь управляется Vercel Edge API
- **Очистка legacy кода**: Удалены все функции генерации миниатюр и сложность
- **Документация**: Сокращена с 17 файлов до 7, следуя принципам KISS/DRY
- **Смена фокуса**: Quoter теперь сосредоточен на upload + storage, Vercel обрабатывает миниатюры
- **Логирование запросов**: Добавлена аналитика источников для оптимизации CORS whitelist
- **Реализация таймаутов**: Добавлены настраиваемые таймауты для S3, Redis и внешних операций
- **Упрощенная безопасность**: Удален сложный rate limiting, оставлена только необходимая защита upload

### 📝 Обновлено
- Консолидирована документация в практическую структуру:
  - Основной README.md с быстрым стартом
  - docs/SETUP.md для конфигурации и развертывания
  - Упрощенный features.md с фокусом на основную функциональность
- Добавлен акцент на Vercel по всему коду и документации

### 🗑️ Удалено
- Избыточные файлы документации (api-reference, deployment, development, и т.д.)
- Дублирующийся контент в нескольких документах
- Излишне детальная документация для простого файлового прокси

💋 **Упрощение**: KISS принцип применен - убрали избыточность, оставили суть.
2025-09-02 14:00:54 +03:00
82668768d0 🔒 Implement comprehensive security and DDoS protection
### Security Features:
- **Rate Limiting**: Redis-based IP tracking with configurable limits
  - General: 100 requests/minute (5min block)
  - Upload: 10 requests/5min (10min block)
  - Auth: 20 requests/15min (30min block)
- **Request Validation**: Path length, header count, suspicious patterns
- **Attack Detection**: Admin paths, script injections, bot patterns
- **Enhanced JWT**: Format validation, length checks, character filtering
- **IP Tracking**: X-Forwarded-For and X-Real-IP support

### Security Headers:
- X-Content-Type-Options: nosniff
- X-Frame-Options: DENY
- X-XSS-Protection: 1; mode=block
- Content-Security-Policy with strict rules
- Strict-Transport-Security with includeSubDomains

### CORS Hardening:
- Limited to specific domains: discours.io, new.discours.io
- Restricted methods: GET, POST, OPTIONS only
- Essential headers only

### Infrastructure:
- Security middleware for all requests
- Local cache + Redis for performance
- Comprehensive logging and monitoring
- Progressive blocking for repeat offenders

### Documentation:
- Complete security guide (docs/security.md)
- Configuration examples
- Incident response procedures
- Monitoring recommendations

Version bump to 0.6.0 for major security enhancement.
2025-09-02 11:40:43 +03:00
d3bee5144f 🧹 Remove unused legacy modules and functions
- Deleted quota.rs module (quota management not needed via HTTP)
- Removed legacy get_id_by_token GraphQL function
- Removed unused set_user_quota and increase_user_quota methods
- Cleaned up unused imports and legacy structs
- Simplified handlers/mod.rs to only expose universal_handler

Architecture now focused on core functionality:
- GET / (user info)
- GET /<filename> (file serving)
- POST / (file upload)
2025-09-02 11:27:48 +03:00
6c03863a86 🔒 Fix Let's Encrypt ACME challenge for SSL certificates
- Add .well-known/ path exclusion in proxy_handler
- Prevent quoter from intercepting ACME challenge requests
- Fix CI/CD build without sudo access
- Add comprehensive SSL troubleshooting documentation

Resolves: SSL certificate generation failure for files.dscrs.site
2025-09-02 11:09:52 +03:00
1aace5fd19 clipped2
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Successful in 7m32s
CI / test (push) Failing after 13m4s
2025-09-01 23:33:27 +03:00
eaa99108a9 clipped
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Failing after 7m29s
CI / test (push) Failing after 12m41s
2025-09-01 23:08:38 +03:00
112f102bb5 fmt
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Failing after 7m37s
CI / test (push) Has been cancelled
2025-09-01 22:58:03 +03:00
6c3262edbe simpler-auth+no-overlay
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Failing after 8s
CI / test (push) Failing after 3m57s
2025-09-01 20:36:15 +03:00
31053db4a2 clippy-fixes
Some checks failed
Deploy / deploy (push) Has been skipped
CI / lint (push) Failing after 1m53s
CI / test (push) Failing after 1m58s
2025-08-12 14:13:35 +03:00
a4c2825f8a coverage-fmt-fix
Some checks failed
Deploy / deploy (push) Has been skipped
CI / test (push) Failing after 9m39s
CI / lint (push) Failing after 1m54s
2025-08-12 13:52:05 +03:00
ea92a376ed docs
Some checks failed
CI / test (push) Failing after 4m0s
CI / lint (push) Failing after 4s
CI / deploy (push) Has been skipped
2025-08-02 00:18:09 +03:00
30000a4803 0.1.1-cors-internal
Some checks failed
deploy / deploy (push) Failing after 33s
2025-06-02 22:20:37 +03:00
0982dff45b heic-bypass
Some checks failed
deploy / deploy (push) Failing after 5s
2024-11-13 12:03:32 +03:00
d0e70a7783 certrs
Some checks failed
deploy / deploy (push) Failing after 5s
2024-11-13 11:42:39 +03:00
b471c66209 noheic-convertion
Some checks failed
deploy / deploy (push) Failing after 5s
2024-11-13 11:32:50 +03:00
bc14d86018 heic-sys
Some checks failed
deploy / deploy (push) Failing after 6s
2024-11-13 11:14:53 +03:00
72c8250818 heic
Some checks failed
deploy / deploy (push) Failing after 5s
2024-11-13 09:24:10 +03:00
b173a52cf4 convert-jpeg
Some checks failed
deploy / deploy (push) Failing after 6s
2024-11-13 09:00:11 +03:00
dc543af525 libheif-add
Some checks failed
deploy / deploy (push) Failing after 6s
2024-11-13 08:56:18 +03:00
be8c03eb11 quota-rollback+logs
Some checks failed
deploy / deploy (push) Failing after 5s
2024-11-12 12:29:19 +03:00
8cba92529e check-both2 2024-11-12 12:13:15 +03:00
6c2245ec98 check-both
Some checks failed
deploy / deploy (push) Failing after 6s
2024-11-12 12:10:14 +03:00
cdd743ac8f ext-fix
Some checks failed
deploy / deploy (push) Failing after 6s
2024-11-12 12:03:34 +03:00
dc23d7d066 prodpath 2024-11-11 14:15:45 +03:00
bdda6b6341 prodfix
Some checks failed
deploy / deploy (push) Failing after 6s
2024-11-11 14:11:11 +03:00
5b7d84de03 debuglogs-more 2024-11-11 14:07:25 +03:00
46e485c71f debuglogs-more
Some checks failed
deploy / deploy (push) Failing after 5s
2024-11-11 14:05:21 +03:00
5e47423eaf debuglogs
Some checks failed
deploy / deploy (push) Failing after 7s
2024-11-11 14:03:20 +03:00
367484ccd7 logs 2024-11-07 21:30:53 +03:00
30f591a34e thumbfix7 2024-11-07 21:22:34 +03:00
8cde63383e fixmore
Some checks failed
deploy / deploy (push) Failing after 6s
2024-10-24 00:27:19 +03:00
a4ea55cf3c store-uplaoded-path
All checks were successful
deploy / deploy (push) Successful in 1m5s
2024-10-23 21:41:29 +03:00
4db1ac6ff7 less-upload
All checks were successful
deploy / deploy (push) Successful in 4m32s
2024-10-23 20:32:07 +03:00
6e90529420 0.1.0-overlay 2024-10-23 20:06:34 +03:00
0d4f21c79b handle-accurater
All checks were successful
deploy / deploy (push) Successful in 1m0s
2024-10-23 17:46:30 +03:00
b0d7162460 orig-ext-case
All checks were successful
deploy / deploy (push) Successful in 58s
2024-10-23 17:33:39 +03:00
eac5c770fc thumbfix
All checks were successful
deploy / deploy (push) Successful in 57s
2024-10-23 17:29:03 +03:00
9b2fa3ac6b origext-fix
All checks were successful
deploy / deploy (push) Successful in 1m1s
2024-10-23 17:20:25 +03:00
7fc29f6b7e find-closest-fix
All checks were successful
deploy / deploy (push) Successful in 1m1s
2024-10-23 17:13:45 +03:00
2aca57c86a guess-format
Some checks failed
deploy / deploy (push) Failing after 10s
2024-10-23 17:08:12 +03:00
b62b01190e root-aws-folder
All checks were successful
deploy / deploy (push) Successful in 58s
2024-10-23 17:01:44 +03:00
f28d65810d pathdebug
All checks were successful
deploy / deploy (push) Successful in 58s
2024-10-23 16:38:34 +03:00
a8936c92d3 filepath
All checks were successful
deploy / deploy (push) Successful in 53s
2024-10-23 16:30:35 +03:00
f671b76611 debugparse2
All checks were successful
deploy / deploy (push) Successful in 55s
2024-10-23 16:26:57 +03:00
6206a68697 debugparse
All checks were successful
deploy / deploy (push) Successful in 55s
2024-10-23 16:21:18 +03:00
322c50de57 proxylogs
All checks were successful
deploy / deploy (push) Successful in 57s
2024-10-23 15:45:05 +03:00
f3a3804e5a parse-filepath-fix
All checks were successful
deploy / deploy (push) Successful in 58s
2024-10-23 15:31:33 +03:00