diff --git a/build/dev/Caddyfile b/build/dev/Caddyfile index 14a54a4..5cc4735 100644 --- a/build/dev/Caddyfile +++ b/build/dev/Caddyfile @@ -1,13 +1,17 @@ -website.localhost { +(common-server) { tls internal - respond /healthcheck 200 - - root * /var/www/html/public - encode zstd gzip + respond /healthcheck 200 + php_fastcgi app:9000 + root * /var/www/html/public + file_server } + +localhost { + import common-server +} diff --git a/build/prod/Caddyfile b/build/prod/Caddyfile index 9aa4de9..35c9523 100644 --- a/build/prod/Caddyfile +++ b/build/prod/Caddyfile @@ -1,13 +1,17 @@ -acme.com { +(common-server) { tls internal - respond /healthcheck 200 - - root * /var/www/html/public - encode zstd gzip + respond /healthcheck 200 + php_fastcgi app:9000 + root * /var/www/html/public + file_server } + +acme.com { + import common-server +}