Skip to content

Commit d519753

Browse files
updated debug and allowed hosts for prod
1 parent b02d833 commit d519753

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Backend/API_DOCS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Authentication API Documentation
22

3-
Base URL: `http://localhost:8000` (dev) | `https://your-backend.vercel.app` (prod)
3+
Base URL: `http://localhost:8000` (dev) | `https://toc-simulator-backend.onrender.com` (prod)
44

55
## Endpoints
66

Backend/config/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
# SECURITY WARNING: don't run with debug turned on in production!
3131
DEBUG = os.getenv('DEBUG', 'True') == 'True'
3232

33-
# Allow all hosts for development/testing
34-
ALLOWED_HOSTS = ['*']
33+
# Allowed hosts: localhost for dev, Render for production
34+
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'toc-simulator-backend.onrender.com']
3535

3636

3737
# Application definition

0 commit comments

Comments
 (0)