-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyFile
More file actions
38 lines (33 loc) · 748 Bytes
/
Copy pathCaddyFile
File metadata and controls
38 lines (33 loc) · 748 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
37
38
{
email {env.EMAIL}
}
{env.DOMAIN} {
encode zstd gzip
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options "nosniff"
X-Frame-Options "SAMEORIGIN"
Referrer-Policy "strict-origin-when-cross-origin"
-Server
}
handle /static/* {
uri strip_prefix /static
root * /app/staticfiles
header Cache-Control "public, max-age=31536000, immutable"
file_server
}
handle /media/* {
uri strip_prefix /media
root * /app/media
header Cache-Control "public, max-age=86400"
file_server
}
handle {
reverse_proxy web:8000 {
header_up X-Real-IP {remote_host}
header_up X-Forwarded-For {remote_host}
header_up X-Forwarded-Proto {scheme}
header_up Host {host}
}
}
}