repos
/ status-rust master

status-rust

mirror archived upstream

Single-binary self-hosted uptime monitoring and status pages on Rust axum: HTTP probes, Lighthouse audits, SEO crawler, and PDF reports.

axumdockerrustself-hostedsqlitestatus-pageuptime-monitoringvite

597 B · 36 lines · Caddyfile Raw History
 1# Caddyfile for status
 2#
 3# I like to use Caddy Server for simple reverse proxies since it has built-in
 4# automatic HTTPS support.
 5{
 6  servers {
 7    protocol {
 8      experimental_http3
 9    }
10  }
11}
12
13(common) {
14  header /static/* {
15    Cache-Control "public, max-age=315360000"
16  }
17
18  header /* {
19    Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
20    X-XSS-Protection "1; mode=block"
21    X-Frame-Options DENY
22    X-Content-Type-Options nosniff
23    -Server
24    -X-Powered-By
25  }
26
27  encode zstd gzip
28}
29
30status.example.com {
31  reverse_proxy localhost:8000
32
33  import common
34}