repos

darkfurrow.com-rust

mirror archived upstream

A living almanac of seasons, soil, and the quiet knowledge that used to be common. Rust axum with minijinja and Vite.

agriculturealmanacaxumfolk-knowledgegardeningminijinjarustseasonalvite

606 B · 36 lines · Caddyfile Raw History
 1# Caddyfile for dark furrow
 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
30darkfurrow.example.com {
31  reverse_proxy localhost:8500
32
33  import common
34}