-
Notifications
You must be signed in to change notification settings - Fork 5
/
Caddyfile.dist
70 lines (60 loc) · 1.84 KB
/
Caddyfile.dist
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
{$GBOX_GLOBAL_DIRECTIVES}
}
(gbox_default_caching_rules) {
# default caching rules will match all types and public.
default {
max_age 30m
swr 30m
}
}
{$GBOX_SERVER_NAME:localhost}
log
@admin_auth {
path /admin/graphql
method POST
expression `{$GBOX_ENABLED_CACHING:true} == true && {$GBOX_ENABLED_ADMIN_AUTH:false} == true`
}
@metrics {
path {$GBOX_METRICS_PATH:/metrics}
method GET
expression `{$GBOX_ENABLED_METRICS:false} == true`
}
route {
encode gzip
respond /healthz "OK"
metrics @metrics
basicauth @admin_auth bcrypt {
{$GBOX_ADMIN_USERNAME:gbox} {$GBOX_ADMIN_PASSWORD:JDJhJDE0JHBXUk5YMjVRYlRtTjN3SERiU0Rrei4uMW4ub0FhaHZlY0hnbWtBMUNSLnhmeEUuUDVOOW5l}
}
gbox {
upstream {$GBOX_UPSTREAM} {
{$GBOX_UPSTREAM_REVERSE_PROXY_DIRECTIVES}
}
fetch_schema_interval {$GBOX_FETCH_SCHEMA_INTERVAL:10m}
complexity {
enabled {$GBOX_ENABLED_COMPLEXITY:true}
node_count_limit {$GBOX_NODE_COUNT_LIMIT:60}
max_complexity {$GBOX_MAX_COMPLEXITY:60}
max_depth {$GBOX_MAX_DEPTH:15}
}
disabled_introspection {$GBOX_DISABLED_INTROSPECTION:false}
disabled_playgrounds {$GBOX_DISABLED_PLAYGROUNDS:false}
caching {
enabled {$GBOX_ENABLED_CACHING:true}
store_dsn {$GBOX_STORE_DSN:freecache://?cache_size=5368709120}
rules {
{$GBOX_CACHING_RULES:import gbox_default_caching_rules}
}
varies {
{$GBOX_CACHING_VARIES}
}
type_keys {
{$GBOX_CACHING_TYPE_KEYS}
}
auto_invalidate_cache {$GBOX_AUTO_INVALIDATE_CACHE:true}
debug_headers {$GBOX_CACHING_DEBUG_HEADERS:true}
}
{$GBOX_EXTRA_DIRECTIVES}
}
}