From 4e63323019f839a83ed3ec564dcfde326eb84933 Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Wed, 18 Mar 2026 21:42:59 -0400 Subject: [PATCH] a pair of small fixes to infra/nginx.conf.j2, to ensure WebSockets functionality; & to role-select.js, to fix the inventory from not updating to that of the new position when a gamer passed the Role cards to the next position when he also occupies that position; separate inventories now ensured --- infra/nginx.conf.j2 | 3 +++ src/apps/epic/static/apps/epic/role-select.js | 2 ++ 2 files changed, 5 insertions(+) diff --git a/infra/nginx.conf.j2 b/infra/nginx.conf.j2 index 57f7c97..e4c6ccd 100644 --- a/infra/nginx.conf.j2 +++ b/infra/nginx.conf.j2 @@ -17,6 +17,9 @@ server { location / { proxy_pass http://127.0.0.1:8888; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/src/apps/epic/static/apps/epic/role-select.js b/src/apps/epic/static/apps/epic/role-select.js index fd79499..846a7b5 100644 --- a/src/apps/epic/static/apps/epic/role-select.js +++ b/src/apps/epic/static/apps/epic/role-select.js @@ -121,6 +121,8 @@ var RoleSelect = (function () { function handleTurnChanged(event) { var active = String(event.detail.active_slot); + var invSlot = document.getElementById("id_inv_role_card"); + if (invSlot) invSlot.innerHTML = ""; // Update card-stack eligibility var stack = document.querySelector(".card-stack[data-user-slots]");