-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCaddyfile
More file actions
55 lines (46 loc) · 1.39 KB
/
Caddyfile
File metadata and controls
55 lines (46 loc) · 1.39 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
{
# Global Options
# Uncomment 'email' if using a public domain with Let's Encrypt
# email your-email@example.com
}
# --- 1. Snippets (Reusable Configuration Blocks) ---
# Basic Security Headers
(base_security) {
header {
X-Frame-Options "SAMEORIGIN"
X-Content-Type-Options "nosniff"
X-XSS-Protection "1; mode=block"
Referrer-Policy "strict-origin-when-cross-origin"
-Server # Hide Server version for security
}
}
# Proxy Settings (Pass Real IPs to Containers)
(proxy_settings) {
header_up X-Real-IP {remote_host}
header_up X-Forwarded-Proto {scheme}
}
# Local TLS (Uncomment if using .lan or local domains without a public resolver)
# (local_tls) {
# tls internal
# }
# --- 2. Service Definitions ---
# Comet - The Stremio Addon
# Replace 'comet.lan' with your domain (e.g., addon.yourdomain.com) or local hostname
comet.lan {
import base_security
# import local_tls # Uncomment for local .lan domains
# Points to the Docker service name 'comet' on port 8000
reverse_proxy comet:8000 {
import proxy_settings
}
}
# Jackett - Indexer Manager
# Replace 'jackett.lan' with your domain
jackett.lan {
import base_security
# import local_tls # Uncomment for local .lan domains
# Points to the Docker service name 'jackett' on port 9117
reverse_proxy jackett:9117 {
import proxy_settings
}
}