Transition to caddy

This commit is contained in:
Harsh Shandilya 2022-07-15 11:47:37 +05:30
parent 446773b688
commit 2a2430ee26
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 34 additions and 47 deletions

33
caddy/dl.msfjarvis.dev Normal file
View file

@ -0,0 +1,33 @@
i915box.tiger-shark.ts.net {
root * /var/www/dl.msfjarvis.dev
php_fastcgi unix//run/php/php-fpm.sock {
try_files {path} {path}/index.php /_h5ai/public/index.php =404
}
file_server
encode gzip
@static {
file
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.pdf *.webp
}
header @static Cache-Control max-age=5184000
}
dl.msfjarvis.dev {
root * /var/www/dl.msfjarvis.dev
php_fastcgi unix//run/php/php-fpm.sock {
try_files {path} {path}/index.php /_h5ai/public/index.php =404
}
tls /etc/caddy/cert.pem /etc/caddy/key.pem {
client_auth {
mode require_and_verify
trusted_ca_cert_file /etc/caddy/cloudflare_origin_cert.pem
}
}
file_server
encode gzip
@static {
file
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.pdf *.webp
}
header @static Cache-Control max-age=5184000
}