feat(api): implement chestny-znak web app with True API integration
- Fastify backend with auth (CryptoPro CAdES-BES), KM check, UPD parsing - React frontend with auth page, code check, XML upload, results table - Client-side signing via crypto-pro 2.3.0 (browser plugin) - Token caching with auto-refresh, retry with exponential backoff - Input validation schemas, file size limits, global 401 interceptor - Docker compose with backend + frontend (nginx) services
This commit is contained in:
1 parent
d2819ff03c
commit
70eac33c8c
19 files changed
+501
-240
No files matched your search
@@ -8,8 +8,14 @@ import { updRoutes } from './routes/upd.js'
|
||||
|
||||
const app = Fastify({ logger: true })
|
||||
|
||||
await app.register(cors, { origin: true })
|
||||
await app.register(multipart)
|
||||
await app.register(cors, { origin: config.corsOrigin })
|
||||
await app.register(multipart, {
|
||||
limits: {
|
||||
fileSize: 10 * 1024 * 1024,
|
||||
files: 1,
|
||||
},
|
||||
throwFileSizeLimit: true,
|
||||
})
|
||||
|
||||
await app.register(authRoutes)
|
||||
await app.register(cisesRoutes)
|
||||
|
||||
Reference in new issue
Block a user