mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-13 19:27:02 +05:30
Caddyfile: attempt updating for v2
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
140aba4e23
commit
57ab93e496
1 changed files with 3 additions and 7 deletions
10
Caddyfile
10
Caddyfile
|
@ -1,12 +1,8 @@
|
||||||
https://dl.msfjarvis.dev {
|
https://dl.msfjarvis.dev {
|
||||||
tls {
|
tls {
|
||||||
dns cloudflare
|
dns cloudflare ${env.CLOUDFLARE_API_TOKEN}
|
||||||
protocols tls1.2
|
protocols tls1.2
|
||||||
}
|
}
|
||||||
root /var/www/dl.msfjarvis.dev
|
root * /var/www/dl.msfjarvis.dev
|
||||||
fastcgi / /run/php/php7.2-fpm.sock php
|
php_fastcgi unix//run/php/php7.2-fpm.sock
|
||||||
rewrite {
|
|
||||||
if {path} ends_with /
|
|
||||||
to {dir}/index.html {dir}/index.php /_h5ai/public/index.php
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue