From 0990cebbe665e255468d3fd4d111445d0bcfd749 Mon Sep 17 00:00:00 2001 From: Flavio Fois Date: Wed, 27 May 2026 21:40:33 +0200 Subject: [PATCH] remove unused Docker and rate limiting configurations from example environment file --- .env.example | 10 ---------- internal/routes/v2/v2.go | 1 - 2 files changed, 11 deletions(-) diff --git a/.env.example b/.env.example index 3112d43..504290b 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,6 @@ # Server Settings PORT=8080 -# Infrastruttura Docker (Traefik + MySQL) -API_DOMAIN=api.esempio.com -ACME_EMAIL=tua@email.com -MYSQL_ROOT_PASSWORD=password-sicura - # DB Settings (usato per sviluppo locale; in Docker il DSN è costruito dal compose) DB_DSN=root:secret@tcp(127.0.0.1:3306)/emly?parseTime=true&loc=UTC DB_MAX_OPEN_CONNS=25 @@ -17,11 +12,6 @@ DATABASE_NAME=emly API_KEY=key-one ADMIN_KEY=admin-key-one -# Rate Limiting — Traefik edge (condiviso tra repliche) -TRAEFIK_RL_AVERAGE=30 -TRAEFIK_RL_BURST=10 -TRAEFIK_RL_PERIOD=1m - # Rate Limiting — App (unauthenticated: no X-API-Key / X-Admin-Key) RL_UNAUTH_MAX_REQS=10 RL_UNAUTH_WINDOW=5m diff --git a/internal/routes/v2/v2.go b/internal/routes/v2/v2.go index 4401a15..feaa758 100644 --- a/internal/routes/v2/v2.go +++ b/internal/routes/v2/v2.go @@ -33,7 +33,6 @@ func NewRouter(db *sqlx.DB, s3conn *storage.S3Connector) http.Handler { r.Route("/api", func(r chi.Router) { registerAdmin(r, db) registerBugReports(r, db, config.Load().Database, s3conn) - registerUpdates(r, db, config.Load()) }) return r