-
Notifications
You must be signed in to change notification settings - Fork 0
/
Caddyfile.dev
53 lines (43 loc) · 1.16 KB
/
Caddyfile.dev
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
# Learn how to configure the Mercure.rocks Hub on https://mercure.rocks/docs/hub/config
{
order mercure after encode
{$GLOBAL_OPTIONS}
}
{$CADDY_EXTRA_CONFIG}
{$SERVER_NAME:localhost:3000} {
log {
format filter {
# Defaults to console while waiting for https://github.com/caddyserver/caddy/pull/5980
wrap console
fields {
uri query {
replace authorization REDACTED
}
}
}
}
tls C:\Users\youbo\Documents\localhost.crt C:\Users\youbo\Documents\localhost.key
encode zstd gzip
mercure {
# Transport to use (default to Bolt)
transport_url {$MERCURE_TRANSPORT_URL:bolt://mercure.db}
# Publisher JWT key
publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} {env.MERCURE_PUBLISHER_JWT_ALG}
# Subscriber JWT key
subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} {env.MERCURE_SUBSCRIBER_JWT_ALG}
# Permissive configuration for the development environment
cors_origins *
publish_origins *
demo
anonymous
subscriptions
# Extra directives
{$MERCURE_EXTRA_DIRECTIVES}
}
{$CADDY_SERVER_EXTRA_DIRECTIVES}
redir / /.well-known/mercure/ui/
respond /healthz 200
respond /robots.txt `User-agent: *
Disallow: /`
respond "Not Found" 404
}