feat(templates/php): Updated template to use process-compose.

This commit is contained in:
Spencer Brower
2024-03-08 13:46:32 -05:00
parent 0318b2ae1a
commit 8dc7010df3
6 changed files with 175 additions and 20 deletions

View File

@@ -1,19 +1,34 @@
(cors) {
@origin header Origin {args[0]}
header @origin Access-Control-Allow-Origin "{args[0]}"
header @origin Access-Control-Allow-Methods "OPTIONS,HEAD,GET,POST,PUT,PATCH,DELETE"
}
wp.test {
root * .
encode zstd gzip
file_server
php_fastcgi 127.0.0.1:9000
php_fastcgi 127.0.0.1:9009
tls internal
}
laravel.test {
# import cors laravel.test
respond /caddy/live OK
root * ./public
try_files {path} page-cache/{path}.html page-cache/{path}.json page-cache/{path}.xml
encode zstd gzip
file_server
php_fastcgi 127.0.0.1:9000
php_fastcgi 127.0.0.1:9009
# Uncomment for Laravel Octane
# reverse_proxy :8000
tls internal
}
}