replaced everything with ws
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
upstream honey_backend {
|
||||
server app:8080;
|
||||
upstream lottery_backend {
|
||||
# Primary backend (port 8080)
|
||||
server 127.0.0.1:8080 max_fails=3 fail_timeout=30s;
|
||||
# Standby backend (port 8082) - used during rolling updates
|
||||
# Uncomment the line below to switch traffic to new backend
|
||||
# server 127.0.0.1:8082 max_fails=3 fail_timeout=30s backup;
|
||||
|
||||
# Health check configuration
|
||||
keepalive 32;
|
||||
}
|
||||
|
||||
server {
|
||||
@@ -16,7 +23,7 @@ server {
|
||||
|
||||
# API endpoints
|
||||
location /api/ {
|
||||
proxy_pass http://honey_backend;
|
||||
proxy_pass http://lottery_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
@@ -34,7 +41,7 @@ server {
|
||||
|
||||
# Actuator endpoints (for health checks)
|
||||
location /actuator/ {
|
||||
proxy_pass http://honey_backend;
|
||||
proxy_pass http://lottery_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@@ -44,7 +51,7 @@ server {
|
||||
|
||||
# Ping endpoint
|
||||
location /ping {
|
||||
proxy_pass http://honey_backend;
|
||||
proxy_pass http://lottery_backend;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
@@ -74,3 +81,4 @@ server {
|
||||
# # ...
|
||||
# }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user