fix: gateway の nginx クラッシュループを修正(location 正規表現をクォート)(v2.1.263-c)
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user