-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
39 lines (33 loc) · 849 Bytes
/
Caddyfile
File metadata and controls
39 lines (33 loc) · 849 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
kidsearch.laurentftech.fr.eu.org {
tls {
dns cloudflare {env.CF_API_TOKEN}
}
# --- Handler 1: API Backend ---
handle /api/* {
reverse_proxy kidsearch-all:8080
}
# --- Handler 2: Proxy pour le Knowledge Panel Vikidia ---
@vikidia_proxy path_regexp ^/vikidia-proxy/([a-z-]+)/(.*)$
handle @vikidia_proxy {
rewrite * /{re.2}
reverse_proxy {re.1}.vikidia.org:443 {
transport http {
tls
}
header_up Host {re.1}.vikidia.org
}
}
# --- Handler 3: Fichiers Statiques (tout le reste) ---
handle {
root * /srv
encode zstd gzip
header {
-Server
X-Frame-Options "SAMEORIGIN"
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"
Permissions-Policy "geolocation=(), microphone=(), camera=()"
}
file_server
}
}