This commit is contained in:
28
docker/Caddyfile
Normal file
28
docker/Caddyfile
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
servers {
|
||||
trusted_proxies static {$TRUSTED_PROXIES:private_ranges}
|
||||
trusted_proxies_strict
|
||||
}
|
||||
|
||||
frankenphp {
|
||||
worker /app/worker.php {
|
||||
num {$FRANKENPHP_WORKERS:16}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{$SERVER_NAME::80} {
|
||||
root * /app/web/public
|
||||
encode zstd br gzip
|
||||
|
||||
@static file
|
||||
handle @static {
|
||||
file_server
|
||||
}
|
||||
|
||||
handle {
|
||||
root * /app
|
||||
rewrite * /worker.php
|
||||
php_server
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user