Skip to content

Commit ca077ed

Browse files
Flegmalukepolo
andauthored
chore: check web domain (#428)
* fix: add script error handling, clean up Redis config, add graceful shutdown * fix: increase API ingress body size to 500M for CS2 demo uploads CS2 demo files can be 100-300MB+. The previous 100M limit would cause 413 errors on demo uploads. 500M accommodates large demos while still being much safer than the original 4G. * fix: revert proxy-body-size, Redis config, and strict mode per review * wip * wip --------- Co-authored-by: Flegma <Flegma@users.noreply.github.com> Co-authored-by: Luke Policinski <luke@lukepolo.com>
1 parent 46c50bf commit ca077ed

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

base/game-server-node-connector/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
name: game-server-node-connector
77
namespace: 5stack
88
spec:
9+
updateStrategy:
10+
type: RollingUpdate
11+
rollingUpdate:
12+
maxUnavailable: 1
913
selector:
1014
matchLabels:
1115
app: game-server-node-connector

setup-env.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ if [ -z "$WEB_DOMAIN" ] || [ -z "$WS_DOMAIN" ] || [ -z "$API_DOMAIN" ] || [ -z "
204204
echo "Base domain cannot be empty. Please enter your base domain (e.g. example.com):"
205205
read WEB_DOMAIN
206206
fi
207+
208+
if [ -z "$WEB_DOMAIN" ] || echo "$WEB_DOMAIN" | grep -q ' '; then
209+
echo "ERROR: Invalid domain '$WEB_DOMAIN'. Domain must be non-empty and contain no spaces."
210+
exit 1
211+
fi
207212

208213
echo "WEB_DOMAIN: $WEB_DOMAIN"
209214
update_env_var "overlays/config/api-config.env" "WEB_DOMAIN" "$WEB_DOMAIN"

0 commit comments

Comments
 (0)