Compare commits

...

5 Commits

2 changed files with 26 additions and 7 deletions

View File

@ -22,7 +22,7 @@ bbaovanc.com {
header Cache-Control no-cache
root * /var/www/bbaovanc.com/public
file_server {
precompressed zstd br gzip
precompressed br zstd gzip
}
import basicerrors

View File

@ -4,20 +4,39 @@ demo.bbaovanc.com {
import hsts
root * /var/www/demo.bbaovanc.com
handle /staging/* {
header Cache-Control no-cache
header X-Robots-Tag noindex
@index_pages path / /staging/ /test/ /pull_request/ /archive/
handle @index_pages {
header Cache-Control no-store
header boba-handle indices
file_server {
browse
precompressed br gzip
browse {
sort time desc
}
}
}
handle {
handle /staging/* {
header Cache-Control no-cache
header boba-handle staging
file_server {
precompressed br zstd gzip
}
}
@test_sites path /test/* /pull_request/*
handle @test_sites {
header Cache-Control no-store
header X-Robots-Tag noindex
header boba-handle test
file_server {
browse
}
}
handle {
respond fallback
}
import basicerrors
}