From 4b39dfec69782d31218244173a26bed59a2c701c Mon Sep 17 00:00:00 2001 From: Alcides Ramos Date: Wed, 11 Sep 2024 13:22:37 +0200 Subject: [PATCH] build(Caddy): minor improvements at Caddyfile(s) --- build/dev/Caddyfile | 14 +++++++++----- build/prod/Caddyfile | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) 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 +}