fix: bug
This commit is contained in:
parent
b80258f17e
commit
1f63dd5546
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue