Commit Graph

12 Commits

Author SHA1 Message Date
a426edb1f6 Use our own UID package. 2025-05-26 18:18:21 +03:00
2f231d4b12 Update Dockerfile v0.0.1 2025-05-26 16:51:01 +03:00
68dfd3cadd Update README.md 2025-05-26 16:50:26 +03:00
de320db166 Add go workspace. 2025-05-26 16:46:38 +03:00
7ea36d23dd Improve build system and Docker configuration
- Switch Dockerfile base image from golang:1.23-bookworm to debian:12-slim
- Update Dockerfile to use pre-built binary instead of building in container
- Fix Docker CMD to use new CLI flag format with --listen and --root-path
- Update Makefile to build binary to ./dist/ directory with CGO_ENABLED=0
- Make build-docker target depend on build target for efficiency
- Change clean target to remove ./dist directory instead of single binary
2025-05-26 13:29:33 +03:00
28008a320d Refactor error handling and logging system
- Replace custom errors package with xerrors for structured error handling
- Remove local logging wrapper and use git.antanst.com/antanst/logging
- Add proper error codes and user messages in server responses
- Improve connection handling with better error categorization
- Update certificate path to use local certs/ directory
- Add request size validation (1024 byte limit)
- Remove panic-on-error configuration option
- Enhance error logging with connection IDs and remote addresses
2025-05-26 13:28:16 +03:00
c78d7898f9 Update Go module dependencies and version
- Upgrade Go version from 1.23.4 to 1.24.3
- Replace zerolog dependency with local xerrors and logging modules
- Add local module replacements for git.antanst.com/antanst/xerrors and logging
- Remove unused color and system dependencies
- Keep gabriel-vasile/mimetype and matoous/go-nanoid dependencies
2025-05-26 13:28:01 +03:00
4456308d48 Replace environment variable config with CLI flag configuration
- Migrate from environment variables to CLI flags for configuration
- Add support for --listen, --root-path, --dir-indexing, --log-level, --response-timeout flags
- Remove config validation error struct as it's no longer needed
- Update .gitignore to exclude /dist directory
- Simplify configuration loading with flag.Parse()
2025-05-26 13:27:44 +03:00
05ff646284 Fix an error log 2025-02-26 10:28:37 +02:00
0a00219054 Update TODO 2025-02-03 13:21:22 +02:00
91b71487bf Add Dockerfile and build-docker make target 2025-02-03 13:17:49 +02:00
3004bc9dd3 Initial commit 2025-02-03 13:12:54 +02:00