Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PORT=4444
ENVIRONMENT=development

# Domain name for CORS origins and cookie settings (use your actual domain in production)
APP_DOMAIN=localhost
APP_DOMAIN=http://localhost

# FastAPI root_path for reverse proxy deployments (empty = serve from root "/")
# Used when gateway is behind a proxy with path prefix (e.g., "/api/v1")
Expand Down Expand Up @@ -167,7 +167,7 @@ EMAIL_AUTH_ENABLED=true
# Platform admin user (bootstrap from environment)
# PRODUCTION: Change these to your actual admin credentials!
[email protected]
PLATFORM_ADMIN_PASSWORD=changeme
PLATFORM_ADMIN_PASSWORD=Qp7$kT!3xZf8Nv@5Jm2cLh9#oG1WbE0r
PLATFORM_ADMIN_FULL_NAME=Platform Administrator

# Argon2id Password Hashing Configuration
Expand Down
24 changes: 17 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,24 @@ update:
@/bin/bash -c "source $(VENV_DIR)/bin/activate && python3 -m uv pip install -U .[dev]"

# help: check-env - Verify all required env vars in .env are present
.PHONY: check-env
.PHONY: check-env check-env-dev

# Validate .env in production mode
check-env:
@echo "🔎 Checking .env against .env.example..."
@missing=0; \
for key in $$(grep -Ev '^\s*#|^\s*$$' .env.example | cut -d= -f1); do \
grep -q "^$$key=" .env || { echo "❌ Missing: $$key"; missing=1; }; \
done; \
if [ $$missing -eq 0 ]; then echo "✅ All environment variables are present."; fi
@echo "🔎 Validating .env against .env.example using Python (prod)..."
@python -m mcpgateway.scripts.validate_env .env.example
# @echo "🔎 Checking .env against .env.example..."
# @missing=0; \
# for key in $$(grep -Ev '^\s*#|^\s*$$' .env.example | cut -d= -f1); do \
# grep -q "^$$key=" .env || { echo "❌ Missing: $$key"; missing=1; }; \
# done; \
# if [ $$missing -eq 0 ]; then echo "✅ All environment variables are present."; fi

# Validate .env in development mode (warnings do not fail)
check-env-dev:
@echo "🔎 Validating .env (dev, warnings do not fail)..."
@python -c "import sys; from mcpgateway.scripts import validate_env as ve; sys.exit(ve.main(env_file='.env', exit_on_warnings=False))"



# =============================================================================
Expand Down
Loading
Loading