- Caddyfile: disable auto_https and admin, listen on :80 only - docker-compose: bind port only on 127.0.0.1 to avoid public exposure - bootstrap/app.php: trust all proxies so Laravel generates correct URLs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a9d14e4bde
commit
f54b471848
@@ -1,18 +1,16 @@
|
|||||||
{
|
{
|
||||||
frankenphp
|
frankenphp
|
||||||
# E-Mail für Let's Encrypt (TLS-Zertifikate)
|
auto_https off
|
||||||
email {$CADDY_EMAIL}
|
admin off
|
||||||
}
|
}
|
||||||
|
|
||||||
{$SERVER_NAME} {
|
:80 {
|
||||||
root * /app/public
|
root * /app/public
|
||||||
|
|
||||||
encode zstd br gzip
|
encode zstd br gzip
|
||||||
|
|
||||||
# PHP-Requests an FrankenPHP übergeben
|
|
||||||
php_server
|
php_server
|
||||||
|
|
||||||
# Logs
|
|
||||||
log {
|
log {
|
||||||
output stderr
|
output stderr
|
||||||
level WARN
|
level WARN
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||||||
health: '/up',
|
health: '/up',
|
||||||
)
|
)
|
||||||
->withMiddleware(function (Middleware $middleware) {
|
->withMiddleware(function (Middleware $middleware) {
|
||||||
//
|
$middleware->trustProxies(at: '*');
|
||||||
})
|
})
|
||||||
->withExceptions(function (Exceptions $exceptions) {
|
->withExceptions(function (Exceptions $exceptions) {
|
||||||
//
|
//
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "5000:80"
|
- "127.0.0.1:5000:80"
|
||||||
environment:
|
environment:
|
||||||
SERVER_NAME: ":80"
|
SERVER_NAME: ":80"
|
||||||
APP_ENV: "${APP_ENV:-production}"
|
APP_ENV: "${APP_ENV:-production}"
|
||||||
|
|||||||
Reference in New Issue
Block a user