ad16618406
- CORS: replace wildcard with explicit origin list from CORS_ORIGINS env - Auth: enforce strong defaults, JWT blacklist (RevokedToken model), login rate limiting - Auth: validate password length before bcrypt (72-byte limit) - Scheduler: single-threaded worker to mitigate SQLite write contention - Scheduler: graceful shutdown (wait=True) - Snapshots: add prune_snapshots() with configurable retention count - Storage: isolate localStorage keys via VITE_APP_KEY prefix - Config: add cors_origins, login_rate_limit, snapshot_retention_count settings
21 lines
364 B
Makefile
21 lines
364 B
Makefile
COMPOSE ?= docker compose
|
|
SERVICE ?= smartup
|
|
|
|
.PHONY: up down log restart ps
|
|
|
|
up:
|
|
$(COMPOSE) up -d --build
|
|
@port=$$(grep -E '^SERVER_PORT=' .env 2>/dev/null | tail -n 1 | cut -d= -f2-); \
|
|
printf '访问地址:http://localhost:%s\n' "$${port:-8899}"
|
|
|
|
down:
|
|
$(COMPOSE) down
|
|
|
|
log:
|
|
$(COMPOSE) logs -f --tail=200 $(SERVICE)
|
|
|
|
restart: down up
|
|
|
|
ps:
|
|
$(COMPOSE) ps
|