Skip to content

Commit

Permalink
frankenphp fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ili101 committed Mar 4, 2024
1 parent 75bab1a commit ac4b3cd
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions api/frankenphp/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
order php_server before file_server
}

{$CADDY_EXTRA_CONFIG}
{$CADDY_EXTRA_CONFIG}

{$SERVER_NAME:localhost} {
log {
Expand All @@ -28,20 +28,20 @@

root * /app/public
encode {
zstd
br
zstd
br
gzip

match {
header Content-Type text/*
header Content-Type application/json*
header Content-Type application/javascript*
header Content-Type application/xhtml+xml*
header Content-Type application/atom+xml*
header Content-Type application/rss+xml*
header Content-Type image/svg+xml*
header Content-Type text/*
header Content-Type application/json*
header Content-Type application/javascript*
header Content-Type application/xhtml+xml*
header Content-Type application/atom+xml*
header Content-Type application/rss+xml*
header Content-Type image/svg+xml*
# Custom formats supported
header Content-Type application/ld+json*
header Content-Type application/ld+json*
}
}

Expand Down Expand Up @@ -70,13 +70,12 @@
# Matches requests for HTML documents, for static files and for Next.js files,
# except for known API paths and paths with extensions handled by API Platform
@pwa expression `(
header({'Accept': '*text/html*'})
&& !path(
'/docs*', '/graphql*', '/bundles*', '/contexts*', '/_profiler*', '/_wdt*',
'*.json*', '*.html', '*.csv', '*.yml', '*.yaml', '*.xml'
)
)
|| path('/favicon.ico', '/manifest.json', '/robots.txt', '/_next*', '/sitemap*')`
header({'Accept': '*text/html*'})
&& !path(
'/docs*', '/graphql*', '/bundles*', '/contexts*', '/_profiler*', '/_wdt*',
'*.json*', '*.html', '*.csv', '*.yml', '*.yaml', '*.xml')
)
|| path('/favicon.ico', '/manifest.json', '/robots.txt', '/_next*', '/sitemap*')`

# Comment the following line if you don't want Next.js to catch requests for HTML documents.
# In this case, they will be handled by the PHP app.
Expand Down

0 comments on commit ac4b3cd

Please sign in to comment.