summarylogtreecommitdiffstats
path: root/Caddyfile
diff options
context:
space:
mode:
authorMarc Straube2021-04-13 18:38:05 +0200
committerMarc Straube2021-04-13 18:38:05 +0200
commit0ce9f3c3edd7577b8f6dda28639f96401a1f41a8 (patch)
tree0bcedb774b17c7b12186840af503a05028b7e0fa /Caddyfile
parente0042fb54238e842822a83b4e5d11fa3791e6988 (diff)
downloadaur-0ce9f3c3edd7577b8f6dda28639f96401a1f41a8.tar.gz
Fix build of package. Fix systemd service for the new mercure version.
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
new file mode 100644
index 000000000000..d4d2fabb4ad1
--- /dev/null
+++ b/Caddyfile
@@ -0,0 +1,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
+}