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

    # 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!
    }

    respond /healthz 200

    respond "Not Found" 404
}