- Added optional HTTP server timeout configurations (`HNHMAP_READ_TIMEOUT`, `HNHMAP_WRITE_TIMEOUT`, `HNHMAP_IDLE_TIMEOUT`) to `.env.example` and updated the server initialization in `main.go` to utilize these settings. - Enhanced API documentation for the `rebuildZooms` endpoint to clarify its background processing and polling mechanism for status updates. - Updated `configuration.md` to include new timeout environment variables for better configuration guidance. - Improved error handling in the client for large request bodies, ensuring appropriate responses for oversized payloads.
16 lines
677 B
Plaintext
16 lines
677 B
Plaintext
# Backend (Go)
|
|
# HNHMAP_PORT=8080
|
|
# HNHMAP_READ_TIMEOUT=30s # HTTP read timeout (optional)
|
|
# HNHMAP_WRITE_TIMEOUT=60s # HTTP write timeout (optional)
|
|
# HNHMAP_IDLE_TIMEOUT=120s # HTTP idle timeout (optional)
|
|
# HNHMAP_BOOTSTRAP_PASSWORD= # Set once for first run: login as admin with this password to create the first admin user (then unset or leave empty)
|
|
# Grids directory (default: grids); in Docker often /map
|
|
# HNHMAP_GRIDS=grids
|
|
# OAuth (Google) — optional
|
|
# HNHMAP_BASE_URL=https://map.example.com
|
|
# HNHMAP_OAUTH_GOOGLE_CLIENT_ID=
|
|
# HNHMAP_OAUTH_GOOGLE_CLIENT_SECRET=
|
|
|
|
# Frontend (Nuxt dev) — used in docker-compose
|
|
# NUXT_PUBLIC_API_BASE=/map/api
|