Repository navigation
Expand file tree
/
Copy pathCaddyfile
More file actions
43 lines (42 loc) · 1.44 KB
/
Copy pathCaddyfile
File metadata and controls
43 lines (42 loc) · 1.44 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
(wave-platform) {
encode zstd gzip
header {
-Server
Content-Security-Policy "default-src 'self'; base-uri 'self'; connect-src 'self' https://challenges.cloudflare.com; font-src 'self' data:; form-action 'self'; frame-ancestors 'none'; frame-src https://challenges.cloudflare.com; img-src 'self' data:; object-src 'none'; script-src 'self' 'wasm-unsafe-eval' https://challenges.cloudflare.com; style-src 'self' 'unsafe-inline'"
Permissions-Policy "camera=(), geolocation=(), microphone=()"
Referrer-Policy strict-origin-when-cross-origin
X-Content-Type-Options nosniff
X-Frame-Options DENY
}
handle /api/playground/compile {
@oversized expression `{http.request.header.Content-Length} != "" && int({http.request.header.Content-Length}) > 32768`
respond @oversized "Source limit exceeded (32 KiB)." 413
request_body {
max_size 32KB
}
reverse_proxy playground:8092 {
transport http {
response_header_timeout 15s
}
}
}
# Keep the public SDK directory separate from all private platform data.
handle_path /downloads/toolchains/* {
root * /srv/toolchains
header X-Robots-Tag noindex
header Cache-Control "no-cache"
@bundle path /llvm/*
header @bundle Cache-Control "public, max-age=31536000, immutable" {
match status 200 206 304
}
@private path_regexp (^|/)\.
respond @private 404
file_server
}
handle {
reverse_proxy wave-platform:8080
}
}
{$WAVE_SITE_ADDRESS:http://localhost} {
import wave-platform
}