configured and setup to run api using frankenphp/Caddyserver

This commit is contained in:
Ronald A. Richardson
2024-01-26 18:39:02 +08:00
parent f52c1a17b8
commit 6a68c85d94
8 changed files with 78 additions and 289 deletions

18
Caddyfile Normal file
View File

@@ -0,0 +1,18 @@
{
# Enable FrankenPHP
frankenphp
# Configure when the directive must be executed
order php_server before file_server
}
http://localhost:8080 {
# Set the webroot to the public/ dir
root * /app/public
# Enable compression
encode zstd gzip
# Execute PHP files in the current directory and serve assets
php_server {
# Required for the public/storage/ dir
resolve_root_symlink
}
}