VirusScanGateway is a Go-based web server designed to facilitate the secure uploading and scanning of files for viruses and malware. It integrates with the VirusTotal API to provide real-time scanning results, which are then stored and displayed from a PostgreSQL database.
To install VirusScanGateway, follow these steps:
git clone https://github.com/yourusername/VirusScanGateway.git
cd VirusScanGateway
# DEV ENVIRONMENT (LOCAL)
DATABASE_URL=postgres://cloudsine:password@host.docker.internal:5432/VirusScanGatewayDB?sslmode=disable
VIRUSTOTAL_API_KEY=Your-Test-API-Key
ENVIRONMENT=DEV
DATABASE_URL=postgresql://postgres:password@db:5432/postgres?sslmode=disable VIRUSTOTAL_API_KEY=Your-Test-API-Key ENVIRONMENT=DEV
5. Run the container:
```bash
docker-compose -f docker-compose-dev-local.yml build
docker-compose -f docker-compose-dev-local.yml up
Before you begin, ensure you have met the following requirements:
Once the application is running, you can upload files to be scanned via the provided web interface at http://localhost:8080
.
Results from the scans will be available in the web interface, and stored in the PostgreSQL database for future reference.
To set up a development environment for contributing to VirusScanGateway, you can use the following additional steps:
For local development, you can run the server directly using:
make start
Make sure your local environment variables are set according to the .env.dev
file.
Distributed under the MIT License. See LICENSE
for more information.