Skip to content

Commit

Permalink
Fix: wrong version handshake nginx issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxuanbao committed Jan 7, 2024
1 parent 596bef7 commit cf3e549
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ server {
ssl_protocols TLSv1.2 TLSv1.3;

location / {
proxy_pass http://localhost:80$request_uri;
proxy_pass http://simulator:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

location /delivery/ {
proxy_pass http://delivery:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

location /order/ {
proxy_pass http://order:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

location /restaurant/ {
proxy_pass http://restaurant:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

location /user/ {
proxy_pass http://user:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}

0 comments on commit cf3e549

Please sign in to comment.