Make Swagger UI Access Configurable for Public or Restricted Use

This commit is contained in:
aditya.chandel
2025-06-08 02:24:35 -06:00
committed by Aditya Chandel
parent bbccedda52
commit baf55a0ffa
10 changed files with 183 additions and 85 deletions
+1
View File
@@ -52,6 +52,7 @@ services:
- DATABASE_URL=jdbc:mariadb://mariadb:3306/booklore # Only modify this if you're familiar with JDBC and your database setup
- DATABASE_USERNAME=booklore # Must match MYSQL_USER defined in the mariadb container
- DATABASE_PASSWORD=your_secure_password # Use a strong password; must match MYSQL_PASSWORD defined in the mariadb container
- SWAGGER_ENABLED=false # Enable or disable Swagger UI (API docs). Set to 'true' to allow access; 'false' to block access (recommended for production).
depends_on:
mariadb:
condition: service_healthy