ci: fix gitleaks module path, compose env file, and nginx limit_req_zone scope
CI / Nginx config check (push) Failing after 17s
CI / Docker compose check (push) Successful in 26s
CI / Env docs check (push) Failing after 26s
CI / Frontend deps check (push) Failing after 32s
CI / Knip (push) Has been skipped
CI / Frontend a11y check (push) Has been skipped
CI / Secrets scan (push) Failing after 40s
CI / Go build (push) Successful in 40s
CI / Frontend build (push) Successful in 1m7s
CI / go mod tidy (push) Successful in 22s
CI / Svelte strict check (push) Has been skipped
CI / Frontend QC (audit) (push) Has been skipped
CI / Frontend QC (typecheck) (push) Has been skipped
CI / Frontend QC (lint) (push) Has been skipped
CI / Go vulnerabilities (push) Successful in 1m16s
CI / Go vet (push) Successful in 2m8s
CI / Staticcheck (push) Failing after 2m12s
CI / golangci-lint (push) Successful in 2m19s
CI / Security scan (gosec) (push) Failing after 2m50s
CI / Tests (prod) (push) Has been skipped
CI / Tests (dev) (push) Has been skipped
CI / Race (prod) (push) Has been skipped
CI / Race (dev) (push) Has been skipped

- secrets-scan: gitleaks module path was renamed from
  github.com/gitleaks/gitleaks/v8 to github.com/zricethezav/gitleaks/v8
- docker-compose-check: create backend/.env from .env.example before
  running docker compose config (env file required by compose.yml)
- nginx: move limit_req_zone directives outside server block to http
  level, where nginx requires them
This commit is contained in:
2026-07-10 10:22:32 +01:00
parent d073172670
commit fbb8837981
2 changed files with 8 additions and 5 deletions
+4 -4
View File
@@ -1,6 +1,10 @@
# Define cache for API responses
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=api_cache:10m max_size=100m inactive=60m use_temp_path=off;
# Rate limiting (per IP) — must be at http level, not inside server block
limit_req_zone $binary_remote_addr zone=api_limit:10m rate=20r/m;
limit_req_zone $binary_remote_addr zone=dav_limit:10m rate=100r/m;
server {
listen 80;
listen 443 ssl http2;
@@ -17,10 +21,6 @@ server {
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self'; connect-src 'self'; frame-ancestors 'none';" always;
# Rate limiting (per IP)
limit_req_zone $binary_remote_addr zone=api_limit:10m rate=20r/m;
limit_req_zone $binary_remote_addr zone=dav_limit:10m rate=100r/m;
# Serve static frontend
root /usr/share/nginx/html;
index index.html;