Caddyfile: attempt updating for v2

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-08-24 16:46:20 +05:30
parent 140aba4e23
commit 57ab93e496
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80
1 changed files with 3 additions and 7 deletions

View File

@ -1,12 +1,8 @@
https://dl.msfjarvis.dev {
tls {
dns cloudflare
dns cloudflare ${env.CLOUDFLARE_API_TOKEN}
protocols tls1.2
}
root /var/www/dl.msfjarvis.dev
fastcgi / /run/php/php7.2-fpm.sock php
rewrite {
if {path} ends_with /
to {dir}/index.html {dir}/index.php /_h5ai/public/index.php
}
root * /var/www/dl.msfjarvis.dev
php_fastcgi unix//run/php/php7.2-fpm.sock
}