fly-apps/static/Caddyfile

21 lines
298 B
Caddyfile
Raw Normal View History

2022-08-09 04:31:25 +00:00
{
# fly.io handles HTTPS for us
auto_https off
}
http://static-mat-services.fly.dev/ {
redir https://mat.services/
}
:8080 {
root * /var/www
file_server
2022-08-10 04:20:12 +00:00
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
2022-08-09 04:31:25 +00:00
}