Add comprehensive configuration and testing for HMAC File Server 3.2

- Introduced configuration files for Docker, Podman, and SystemD deployments.
- Implemented a comprehensive test suite for HMAC validation, file uploads, and network resilience.
- Added debugging scripts for live monitoring of upload issues and service status.
- Created minimal configuration for testing purposes.
- Developed multiple test scripts to validate HMAC calculations and response handling.
- Enhanced upload tests to cover various scenarios including invalid HMAC and unsupported file extensions.
- Improved logging and error analysis capabilities for better diagnostics.
This commit is contained in:
2025-07-20 18:04:23 +00:00
parent f8e4d8fcba
commit 68ede52336
37 changed files with 2754 additions and 591 deletions

View File

@ -680,6 +680,16 @@ EOF
chmod 640 "$CONFIG_DIR/config.toml"
echo -e "${GREEN}Configuration file created: $CONFIG_DIR/config.toml${NC}"
# Validate the generated configuration
echo -e "${YELLOW}Validating configuration...${NC}"
if command -v "$INSTALL_DIR/hmac-file-server" >/dev/null 2>&1; then
if sudo -u "$HMAC_USER" "$INSTALL_DIR/hmac-file-server" -config "$CONFIG_DIR/config.toml" --validate-config >/dev/null 2>&1; then
echo -e "${GREEN}✅ Configuration validation passed${NC}"
else
echo -e "${YELLOW}⚠️ Configuration has warnings - check with: sudo -u $HMAC_USER $INSTALL_DIR/hmac-file-server -config $CONFIG_DIR/config.toml --validate-config${NC}"
fi
fi
}
# Create Docker deployment