MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / build_public_meta

Function build_public_meta

main.py:53–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def build_public_meta() -> dict:
54 return {
55 "version": APP_VERSION,
56 "api": {
57 "legacyConfig": "/",
58 "publicConfig": "/api/v1/config",
59 "health": "/health",
60 },
61 "features": {
62 "chunkUpload": bool(settings.enableChunk),
63 "guestUpload": bool(settings.openUpload),
64 "adminAddressVisible": bool(settings.showAdminAddr),
65 "expirationModes": settings.expireStyle,
66 },
67 "limits": {
68 "uploadSize": settings.uploadSize,
69 "allowedFileTypes": settings.allowed_file_types,
70 "maxSaveSeconds": settings.max_save_seconds,
71 "uploadWindowMinutes": settings.uploadMinute,
72 "uploadWindowCount": settings.uploadCount,
73 },
74 }
75
76
77FILE_SIZE_UNITS = {"KB": 1024, "MB": 1024**2, "GB": 1024**3}

Callers 1

get_public_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected