diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 1ed0260..51db1b0 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -22,4 +22,5 @@ spring.servlet.multipart.max-request-size=200MB # ClamAV Configuration clamav.host=${CLAMAV_HOST:clamav} clamav.port=${CLAMAV_PORT:3310} +clamav.enabled=${CLAMAV_ENABLED:false} diff --git a/backend/src/test/java/com/printcalculator/config/TestConfig.java b/backend/src/test/java/com/printcalculator/config/TestConfig.java index 50c2b3e..009efb3 100644 --- a/backend/src/test/java/com/printcalculator/config/TestConfig.java +++ b/backend/src/test/java/com/printcalculator/config/TestConfig.java @@ -13,7 +13,7 @@ public class TestConfig { @Bean @Primary public ClamAVService mockClamAVService() { - return new ClamAVService("localhost", 3310) { + return new ClamAVService("localhost", 3310, true) { @Override public boolean scan(InputStream inputStream) { return true; // Always clean for tests diff --git a/docker-compose.yml b/docker-compose.yml index 3568f73..aed3c05 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,11 +13,6 @@ services: - DB_USERNAME=printcalc - DB_PASSWORD=printcalc_secret - SPRING_PROFILES_ACTIVE=local - - FILAMENT_COST_PER_KG=22.0 - - MACHINE_COST_PER_HOUR=2.50 - - ENERGY_COST_PER_KWH=0.30 - - PRINTER_POWER_WATTS=150 - - MARKUP_PERCENT=20 - TEMP_DIR=/app/temp - PROFILES_DIR=/app/profiles - CLAMAV_HOST=clamav