mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 11:47:01 +05:30
caddy: relocate config
This commit is contained in:
parent
6ce25b308a
commit
34fd5d6d44
2 changed files with 1 additions and 1 deletions
33
Caddyfile
Normal file
33
Caddyfile
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue