Skip to content

Commit

Permalink
build(Caddy): minor improvements at Caddyfile(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlcidesRC committed Sep 11, 2024
1 parent 20b6c43 commit 4b39dfe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions build/dev/Caddyfile
Original file line number Diff line number Diff line change
@@ -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
}
14 changes: 9 additions & 5 deletions build/prod/Caddyfile
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 4b39dfe

Please sign in to comment.