mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-22 16:27:39 +01:00
23 lines
365 B
Caddyfile
23 lines
365 B
Caddyfile
{{domain}} {
|
|
|
|
root * {{deploy_path}}/current/{{public_path}}
|
|
file_server
|
|
php_fastcgi * unix//run/php/php{{php_version}}-fpm.sock {
|
|
resolve_root_symlink
|
|
}
|
|
|
|
log {
|
|
output file {{deploy_path}}/log/access.log
|
|
}
|
|
|
|
handle_errors {
|
|
@404 {
|
|
expression {http.error.status_code} == 404
|
|
}
|
|
rewrite @404 /404.html
|
|
file_server {
|
|
root /var/dep/html
|
|
}
|
|
}
|
|
}
|