-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
42 lines (33 loc) · 934 Bytes
/
Copy pathCaddyfile
File metadata and controls
42 lines (33 loc) · 934 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
39
40
41
42
{
frankenphp
order php_server before file_server
auto_https off
}
:80 {
root * /app/public
# Disable local environment
# encode zstd br gzip
# Enable HSTS (HTTP Strict Transport Security)
# header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
# Security headers
# header X-Content-Type-Options "nosniff"
# header X-Frame-Options "SAMEORIGIN"
# header Referrer-Policy "strict-origin-when-cross-origin"
php_server
# ✅ Serve Laravel storage directly (NO symlink needed)
handle_path /media/* {
root * /app/storage/app/public/media
file_server
}
# ✅ Serve Laravel storage directly (NO symlink needed)
handle_path /images/* {
root * /app/storage/app/public/images
file_server
}
file_server
# Logging
log {
output file /var/log/caddy/access.log
format json
}
}