Skip to content

Commit

Permalink
Fix backend and gateway issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Bodreev committed Feb 10, 2025
1 parent 697b7ec commit a9fcd2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion backend/kittygram_backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
router.register(r"achievements", AchievementViewSet)


# ✅ Функция для корневого пути "/"
def index(request):
return HttpResponse("Kittygram is running!")

Expand Down
7 changes: 4 additions & 3 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ server {

# proxy frontend (if SPA)
location / {
root /static;
index index.html;
try_files $uri /index.html;
proxy_pass http://backend:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

0 comments on commit a9fcd2a

Please sign in to comment.