forked from
whitequark.org/git-pages
fork of whitequark.org/git-pages with mods for tangled
1{
2 storage s3 {
3 host "{env.PAGES_STORAGE_S3_ENDPOINT}"
4 access_id "{env.PAGES_STORAGE_S3_ACCESS_KEY_ID}"
5 secret_key "{env.PAGES_STORAGE_S3_SECRET_ACCESS_KEY}"
6 bucket "{env.PAGES_STORAGE_S3_BUCKET}"
7 prefix "ssl"
8 }
9
10 admin off
11
12 persist_config off
13
14 email {env.ACME_EMAIL}
15
16 auto_https disable_redirects
17
18 on_demand_tls {
19 permission http http://localhost:3001
20 }
21}
22
23https://, http:// {
24 tls {
25 on_demand
26 }
27
28 # initial PUT/POST for a new domain has to happen over HTTP
29 @upgrade `method('GET') && protocol('http')`
30 redir @upgrade https://{host}{uri} 301
31
32 reverse_proxy http://localhost:3000
33 header Alt-Svc `h3=":443"; persist=1, h2=":443"; persist=1`
34 encode
35}