feat(auth): implement authentication endpoints and JWT handling
This commit is contained in:
+7
-1
@@ -8,8 +8,14 @@ services:
|
||||
ports:
|
||||
- "${API_PORT:-3671}:3671"
|
||||
environment:
|
||||
MONGODB_URL: mongodb://${MONGO_USER:-theplug}:${MONGO_PASSWORD:-theplug_dev_password}@mongodb:27017/${MONGO_DB:-theplug}?authSource=admin
|
||||
MONGODB_URI: mongodb://${MONGO_USER:-theplug}:${MONGO_PASSWORD:-theplug_dev_password}@mongodb:27017/${MONGO_DB:-theplug}?authSource=admin
|
||||
MONGODB_DB_NAME: ${MONGO_DB:-theplug}
|
||||
REDIS_URL: redis://redis:6379/0
|
||||
JWT_SECRET_KEY: ${JWT_SECRET_KEY:-change-this-secret}
|
||||
JWT_ALGORITHM: ${JWT_ALGORITHM:-HS256}
|
||||
JWT_EXPIRE_MINUTES: ${JWT_EXPIRE_MINUTES:-30}
|
||||
AUTH_USERNAME: ${AUTH_USERNAME:-admin}
|
||||
AUTH_PASSWORD: ${AUTH_PASSWORD:-change-this-password}
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user