summarylogtreecommitdiffstats
path: root/Caddyfile.dev
blob: b53a3970b5dc0fb2b30728b99010fd25f6493ee0 (plain)
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
# Learn how to configure the Mercure.rocks Hub on https://mercure.rocks/docs/hub/config
{
    http_port 3000
    https_port 3001

    # Debug mode (disable it in production!)
    debug

    # HTTP/3 support
    servers {
        protocol {
            experimental_http3
        }
    }
}

# Automatic HTTPS does not work with the systemd service unit.
# Change port to your https_port and enable the tls setting, if you want to use HTTPS.
:3000

#tls /etc/ssl/certs/cert.pem /etc/ssl/private/key.pem

log

route {
    encode zstd gzip

    mercure {
        # Transport to use (default to Bolt)
        transport_url bolt:///run/mercure/mercure.db
        # Publisher JWT key
        publisher_jwt !ChangeMe!
        # Subscriber JWT key
        subscriber_jwt !ChangeMe!
        # Permissive configuration for the development environment
        cors_origins *
        publish_origins *
        demo
        anonymous
        subscriptions
    }

    respond /healthz 200

    respond "Not Found" 404
}