Skip to content

Commit

Permalink
[Bug] Include Environment Variables in Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed May 15, 2024
1 parent aa7c672 commit 5d49a0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .platform/nginx/conf.d/proxy-dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@ server {

location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}

location /ws/chat {
proxy_pass $service_url;
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

# WebSocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Origin "";

# Timeout settings for WebSocket
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_connect_timeout 60s;
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
- kafka
- redis
- mongo
env_file:
- .env

kafka:
image: wurstmeister/kafka:latest
Expand Down

0 comments on commit 5d49a0d

Please sign in to comment.