Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# HTTPS Options
tls {$TLS_EMAIL}


# Test HTTPS setup
# tls {$TLS_EMAIL} {
# ca https://acme-staging-v02.api.letsencrypt.org/directory
Expand All @@ -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
Expand Down