forked from codalab/codabench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
36 lines (27 loc) · 643 Bytes
/
Caddyfile
File metadata and controls
36 lines (27 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{$DOMAIN_NAME} {
# HTTPS Options
tls {$TLS_EMAIL}
# Test HTTPS setup
# tls {$TLS_EMAIL} {
# ca https://acme-staging-v02.api.letsencrypt.org/directory
# }
# Removing some headers for improved security:
header -Server
# Serves static files, should be the same as `STATIC_ROOT` setting:
root * /var/www/django
file_server
@noStatic {
not path /static/*
not path /media/*
}
# Serving dynamic requests:
reverse_proxy @noStatic django:8000
# Allows to use `.gz` files when available:
encode gzip
# Logs:
log {
output file /var/log/caddyaccess.log {
roll_disabled
}
}
}