fix: add magic-byte checks, login rate limits, and non-root Docker

Close the remaining security gaps: validate upload content against
file signatures, rate-limit admin login failures with configurable
thresholds, and run the container as uid 1000 instead of root.
This commit is contained in:
vastsa committed 2026-07-23 22:23:04 +08:00
1 parent c11059b851
commit eda0a3127a
12 files changed
+350 -34

No files matched your search

+2
View File
@@ -76,6 +76,8 @@ DEFAULT_CONFIG = {
"themesSelect": "themes/2024",
"errorMinute": 1,
"errorCount": 10,
"loginCount": 5,
"loginMinute": 15,
"serverWorkers": 1,
"serverHost": "0.0.0.0",
"serverPort": 12345,