Repository navigation
Expand file tree
/
Copy pathsample.env
More file actions
46 lines (36 loc) · 1.88 KB
/
Copy pathsample.env
File metadata and controls
46 lines (36 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This is a sample environment file.
# Copy this file to .env and fill in your actual values.
# The .env file should be in your .gitignore and NEVER committed.
# Is not needed for development, will default a placeholder value
SECRET_KEY="your-super-secret-django-key-goes-here"
# DEBUG by default is false
DEBUG=True
# Allowed hosts in the Header "Host" (comma-separated list)
ALLOWED_HOSTS="localhost,127.0.0.1,dmacfast01.science.mcmaster.ca,130.113.213.210,macfast.ca"
# CORS allowed origins (comma-separated list)
# The URLs of the MacFAST frontend and other allowed origins
CORS_ALLOWED_ORIGINS="http://localhost:3000,http://dmacfast01.science.mcmaster.ca,http://dmacfast01.science.mcmaster.ca:3000,https://macfast.ca"
# OIDC environment Configuration
# Can be found pinned in our teams channel, will have to find a place to store these securely for long term
ENTRA_TENANT_ID=""
OIDC_RP_CLIENT_ID=""
OIDC_RP_CLIENT_SECRET=""
# --- Database Configuration (PostgreSQL) ---
# Database name
POSTGRES_DB="mc-fast"
# Database user
POSTGRES_USER="postgres"
# Database password
POSTGRES_PASSWORD="your-db-password-here"
# Full database connection URL
# Format: postgresql://USER:PASSWORD@HOST:PORT/DATABASE
# For Docker: use 'db' as HOST (service name in docker-compose.yaml)
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}
# RabbitMQ Creds
RABBITMQ_USER="myuser"
RABBITMQ_PASSWORD="mypassword"
# Celery Broker URL
CELERY_BROKER_URL=amqp://${RABBITMQ_USER}:${RABBITMQ_PASSWORD}@localhost:5672/
# Will brick logging in with any auth but enables the ability to use the following command to test load on the OIDC callback logic without needing to worry about actual authentication:
# uv run locust -f load_tests/oidc_callback_benchmark.py --headless --users 100 --spawn-rate 5 --run-time 1m --host=http://127.0.0.1:8000 --html=auth_performance_report.html
OIDC_USE_MOCK = "False"