[MIRROR ONLY] A correct and efficient ATProto blob proxy for secure content delivery. codeberg.org/Blooym/porxie
36
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: outline sys memory maximum

Lyna 3bb9d60d 8b7dd331

+14 -15
-1
.gitignore
··· 1 1 target/ 2 2 .direnv/ 3 3 4 - 5 4 test_server.py
+10 -11
README.md
··· 139 139 140 140 --blob-max-size <BA_BLOB_MAX_SIZE> 141 141 Maximum blob size that can be fetched and served. 142 - 143 - Blobs that exceed this limit will return HTTP 413. Setting this too high can exhaust 144 - process or system memory. The minimum value is 512kb. 142 + 143 + Blobs that exceed this limit will return HTTP 413. 144 + 145 + The minimum value is 512kb and the maximum is the system's total memory. 145 146 146 147 [env: PORXIE_BLOB_MAX_SIZE=] 147 148 [default: 50mb] ··· 208 209 ``` 209 210 --cache-allocation <CA_CACHE_ALLOCATION> 210 211 Total memory allocation for the internal cache. 211 - 212 - Blobs are cached using an LFU policy. The most frequently requested blobs are kept 213 - longest when the cache approaches its limit. 214 - 215 - For production deployments, a CDN or caching layer in front of this server is 216 - recommended for lower latency and better global availability. 217 - 218 - Setting this too high can exhaust process or system memory. The minimum value is 8mb. 212 + 213 + Blobs are cached using an LFU policy. The most frequently requested blobs are kept longest when the cache approaches its limit. 214 + 215 + For production deployments, a CDN or caching layer in front of this server is recommended for lower latency and better global availability. 216 + 217 + The minimum value is 8mb and the maximum is the system's total memory. 219 218 220 219 [env: PORXIE_CACHE_ALLOCATION=] 221 220 [default: 512mb]
+4 -3
src/main.rs
··· 135 135 136 136 /// Maximum blob size that can be fetched and served. 137 137 /// 138 - /// Blobs that exceed this limit will return HTTP 413. Setting this too high can exhaust 139 - /// process or system memory. The minimum value is 512kb. 138 + /// Blobs that exceed this limit will return HTTP 413. 139 + /// 140 + /// The minimum value is 512kb and the maximum is the system's total memory. 140 141 #[arg( 141 142 id = "BA_BLOB_MAX_SIZE", 142 143 long = "blob-max-size", ··· 252 253 /// For production deployments, a CDN or caching layer in front of this server is recommended 253 254 /// for lower latency and better global availability. 254 255 /// 255 - /// Setting this too high can exhaust process or system memory. The minimum value is 8mb. 256 + /// The minimum value is 8mb and the maximum is the system's total memory. 256 257 #[arg( 257 258 id = "CA_CACHE_ALLOCATION", 258 259 long = "cache-allocation",