perf(api): кэш-заголовки статики, CORS по allowlist, раздельные health/ready, compress в Traefik
This commit is contained in:
1 parent
30d331c633
commit
1d7ea35a23
9 files changed
+269
-83
No files matched your search
@@ -88,6 +88,10 @@ services:
|
||||
- traefik.http.routers.auth-portal.tls=true
|
||||
- traefik.http.routers.auth-portal.tls.certresolver=letsencrypt
|
||||
- traefik.http.services.auth-portal.loadbalancer.server.port=8080
|
||||
# Сжатие JSON/текста на стороне Traefik (ноль CPU/RAM в Node);
|
||||
# предсжатые .br/.gz статики Traefik не пересжимает (есть Content-Encoding).
|
||||
- traefik.http.middlewares.auth-portal-compress.compress=true
|
||||
- traefik.http.routers.auth-portal.middlewares=auth-portal-compress
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user