replaced everything with ws

This commit is contained in:
Mykhailo Svishchov
2026-03-04 21:42:35 +02:00
parent 68d04f2203
commit 313bd13ef9
378 changed files with 29072 additions and 824 deletions

View File

@@ -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 {
# # ...
# }

View File

@@ -32,3 +32,4 @@ http {
include /etc/nginx/conf.d/*.conf;
}