From 79091f41d00f7a1d37ecdfaae5c75cf978da5870 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 27 May 2025 11:27:06 +0200 Subject: [PATCH] fix Caddyfile indentation --- Caddyfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Caddyfile b/Caddyfile index ce2599afd..8774b7381 100644 --- a/Caddyfile +++ b/Caddyfile @@ -2,7 +2,6 @@ # HTTPS Options tls {$TLS_EMAIL} - # Test HTTPS setup # tls {$TLS_EMAIL} { # ca https://acme-staging-v02.api.letsencrypt.org/directory @@ -20,23 +19,23 @@ root /srv try_files maintenance.on } - handle @maintenanceModeActive { + handle @maintenanceModeActive { root * /srv redir @noRedirect /maintenance.html - file_server { + file_server { status 503 } - } + } # Serves static files, should be the same as `STATIC_ROOT` setting: - root * /var/www/django + root * /var/www/django file_server - + @noStatic { not path /static/* not path /media/* } - + # Serving dynamic requests: reverse_proxy @noStatic django:8000