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 docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ services:
context: ../RAGdollChat
dockerfile: Dockerfile
args:
NEXT_PUBLIC_BACKEND_API_URL: ${PUBLIC_BASE_URL:-https://iplvr.it.ntnu.no}
NEXT_PUBLIC_BACKEND_API_URL: ${PUBLIC_BASE_URL:-https://iplvr.it.ntnu.no}/backend
NEXT_PUBLIC_BASE_PATH: /chat
container_name: ragdoll-chat
environment:
- NODE_ENV=production
- PORT=3001
- NEXT_PUBLIC_BACKEND_API_URL=${PUBLIC_BASE_URL:-https://iplvr.it.ntnu.no}
- NEXT_PUBLIC_BACKEND_API_URL=${PUBLIC_BASE_URL:-https://iplvr.it.ntnu.no}/backend
- NEXT_PUBLIC_BASE_PATH=/chat
expose:
- "3001"
Expand Down
8 changes: 8 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}

location /backend/ {
proxy_pass http://backend-service: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;
proxy_set_header X-Forwarded-Proto $scheme;
}

location /chat/ {
proxy_pass http://chat-service:3001;
proxy_set_header Host $host;
Expand Down
Loading