forked from dunglas/mercure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.Caddyfile
More file actions
executable file
·54 lines (46 loc) · 1.12 KB
/
dev.Caddyfile
File metadata and controls
executable file
·54 lines (46 loc) · 1.12 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
# Learn how to configure the Mercure.rocks Hub on https://mercure.rocks/docs/hub/config
{
{$GLOBAL_OPTIONS}
}
{$CADDY_EXTRA_CONFIG}
{$SERVER_NAME:localhost} {
log {
format filter {
fields {
request>uri query {
replace authorization REDACTED
}
}
}
}
encode zstd gzip
mercure {
# Auth0 public JWKS keys:
publisher_jwks_url {$MERCURE_JWKS_URL}
subscriber_jwks_url {$MERCURE_JWKS_URL}
# Permissive configuration for the development environment
cors_origins *
publish_origins *
demo
anonymous
subscriptions
# Extra directives
{$MERCURE_EXTRA_DIRECTIVES}
transport redis {
# Google Cloud Memorystore Redis instance address (e.g., 10.0.0.1:6379)
address {env.MERCURE_REDIS_ADDRESS}
# Enable IAM authentication
use_iam_auth true
# Google Cloud project ID
project_id {env.GOOGLE_CLOUD_PROJECT_ID}
subscribers_size {env.MERCURE_REDIS_SUBSCRIBERS_SIZE}
redis_channel {env.MERCURE_REDIS_CHANNEL}
}
}
{$CADDY_SERVER_EXTRA_DIRECTIVES}
redir / /.well-known/mercure/ui/
respond /healthz 200
respond /robots.txt `User-agent: *
Disallow: /`
respond "Not Found" 404
}