mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 22:27:22 +00:00
configured and setup to run api using frankenphp/Caddyserver
This commit is contained in:
18
Caddyfile
Normal file
18
Caddyfile
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user