- Add /api/users/me/avatar and /api/projects/{name}/avatar multipart upload endpoints
- Fix avatar URL path: missing /avatar prefix (static.gitdata.ai/avatar/{file})
- Fix project avatar: Utc::now() → .timestamp(), missing extension, wrong return type
- Replace broken SkipNoisyPaths middleware with self-contained RequestLogger
(actix-web 4.13 body type incompatibility with newer actix-http)
- Exclude /assets/* requests from main app logger
- Exclude /avatar/*, /blob/*, /media/*, /static/* from static server logger
- Fix TypingEvent missing sender_type field in ws_universal.rs and connection.rs
- Wire real fetch-based upload in user profile settings
- Add project avatar upload UI to project settings page
25 lines
571 B
TOML
25 lines
571 B
TOML
[package]
|
|
name = "static-server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
actix-web = { workspace = true }
|
|
actix-files = { workspace = true }
|
|
actix-cors = { workspace = true }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
futures = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
mime = { workspace = true }
|
|
mime_guess2 = { workspace = true }
|
|
slog = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
env_logger = { workspace = true }
|
|
log = "0.4"
|
|
|
|
[profile.release]
|
|
strip = true
|
|
lto = "thin"
|
|
opt-level = 3
|