fix: gateway の nginx クラッシュループを修正(location 正規表現をクォート)(v2.1.263-c)
Helm Chart Release / release-chart (push) Successful in 7s
Build Session Image / build-push (push) Successful in 2m0s

nginx: [emerg] pcre2_compile() failed: missing closing parenthesis in
"^/s/(?<sid>[a-f0-9]" で gateway が CrashLoopBackOff になっていた。

location ~ の正規表現に含まれる {10} の { } を nginx 設定パーサーがブロック
区切りと解釈していた。nginx は { } ; を含む正規表現のクォートを必須とするため、
files/gateway.conf.template の該当 location をダブルクォートで囲んだ。
envsubst の置換は ${...} 6 変数のみで {10} に影響しないことを確認済み。
This commit is contained in:
2026-09-08 18:12:57 +09:00
parent 528a48b667
commit 6ec4378047
5 changed files with 54 additions and 2 deletions
+2 -1
View File
@@ -72,7 +72,8 @@ http {
}
# ---- セッションへのリバースプロキシ(WebSocket 対応)----
location ~ ^/s/(?<sid>[a-f0-9]{10})(?<rest>/.*)?$ {
# 正規表現に { } を含むため location 全体をクォートする(nginx 必須)
location ~ "^/s/(?<sid>[a-f0-9]{10})(?<rest>/.*)?$" {
include /tmp/nginx/auth_basic.conf;
include /tmp/nginx/auth_request.conf;
error_page 401 = @needlogin;