- Integrated express-basic-auth middleware in index.js to secure non-GET routes with basic authentication. - Updated libraryManager.py to use HTTPBasicAuth for API requests, enhancing security for book management operations. - Modified public/index.html to improve the user interface with a new search feature and dynamic book table. - Removed obsolete public/library.html file to streamline the project structure. - Updated package.json and package-lock.json to include express-basic-auth as a new dependency.
21 lines
403 B
YAML
21 lines
403 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
library-manager:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY}
|
|
- ADMIN_EMAIL=${ADMIN_EMAIL}
|
|
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
|
|
- DOMAIN=${DOMAIN}
|
|
volumes:
|
|
- .:/usr/src/app
|
|
- ./data:/usr/src/app/data
|
|
|
|
|