-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (28 loc) · 1.35 KB
/
Copy path.env.example
File metadata and controls
34 lines (28 loc) · 1.35 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
# ---------------------------------------------------
# Copy this file to ".env" and fill in real values.
# NEVER commit the real ".env" file to version control.
# ---------------------------------------------------
# App settings
APP_NAME=URL Shortener
APP_ENV=development
DEBUG=True
# The host:port your app runs on (used to build short URLs like http://localhost:8000/abc123)
BASE_URL=http://localhost:8000
# Length of the generated short code (e.g. 6 -> http://localhost:8000/aZ3kD9)
SHORT_CODE_LENGTH=6
# MongoDB connection
# - If running MongoDB via the provided docker-compose.yml, use:
# MONGO_URI=mongodb://mongo_user:mongo_pass@mongodb:27017
# ("mongodb" is the docker-compose service name, not localhost)
# - If running MongoDB locally on your machine instead, use:
# MONGO_URI=mongodb://localhost:27017
# - If using MongoDB Atlas (cloud), paste the connection string Atlas gives you:
# MONGO_URI=mongodb+srv://<user>:<password>@<cluster>.mongodb.net
MONGO_URI=mongodb://mongo_user:mongo_pass@mongodb:27017
MONGO_DB_NAME=url_shortener
# These two are used ONLY by docker-compose.yml to create the MongoDB
# root user. They MUST match the username/password used in MONGO_URI above.
MONGO_ROOT_USER=mongo_user
MONGO_ROOT_PASSWORD=mongo_pass
# CORS - comma separated list of allowed origins ("*" means allow all, ok for local dev only)
ALLOWED_ORIGINS=*