remove unused Docker and rate limiting configurations from example environment file
Some checks failed
Build & Publish Docker Image / build-and-push (push) Failing after 9s
Some checks failed
Build & Publish Docker Image / build-and-push (push) Failing after 9s
This commit is contained in:
10
.env.example
10
.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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user