From 1f63dd5546e209c2a5bfc991376f598826c25c8b Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 10 Apr 2026 05:34:23 +0400 Subject: [PATCH] fix: bug --- apps/web/src/routes/dashboard.ts | 1 + setup-status.sh | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index 5f95184..a10a0c4 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -776,6 +776,7 @@ export const dashboard = new Elysia() index_search: !!b.index_search, auto_refresh_s: Number(b.auto_refresh_s) || 60, og_image_url: b.og_image_url || null, + custom_domain: b.custom_domain || null, custom_css: b.custom_css || null, footer_text: b.footer_text || null, groups: groupsForApi, diff --git a/setup-status.sh b/setup-status.sh index b870639..7a12857 100644 --- a/setup-status.sh +++ b/setup-status.sh @@ -66,17 +66,44 @@ cat > /etc/caddy/Caddyfile << 'EOF' on_demand_tls { ask http://localhost:3003/internal/verify-domain } + servers { + protocols h1 h2 h3 + } +} + +(common) { + encode zstd gzip + + header { + -Server + Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + X-Content-Type-Options "nosniff" + X-Frame-Options "DENY" + Referrer-Policy "strict-origin-when-cross-origin" + } + + handle /_static/* { + root * /opt/pingql/apps/status/src/static + uri strip_prefix /_static + file_server + header Cache-Control "public, max-age=31536000, immutable" + } + + handle { + reverse_proxy localhost:3003 + header Cache-Control "public, max-age=15, s-maxage=15" + } } status.pingql.com { - reverse_proxy localhost:3003 + import common } https:// { tls { on_demand } - reverse_proxy localhost:3003 + import common } EOF