From f86874ef2092ffcd51089b1695cf8aeaa4fb2a0b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 13 Nov 2023 22:52:21 -0500 Subject: Update radicale and set recommended headers This was leftover from work on the previous commit. I don't think its actually needed to get my stuff working, but these headers are recommended in the docs and the latest version supposedly has some relevant bug fixes, so I decided to commit this. - https://github.com/Kozea/Radicale/issues/838 - https://github.com/Kozea/Radicale/issues/954 - https://github.com/Kozea/Radicale/issues/1247 --- Biz/Bild/Sources.json | 12 ++++++++++++ Biz/Cloud/Web.nix | 6 ++++++ 2 files changed, 18 insertions(+) (limited to 'Biz') diff --git a/Biz/Bild/Sources.json b/Biz/Bild/Sources.json index a1db11f..874e9a5 100644 --- a/Biz/Bild/Sources.json +++ b/Biz/Bild/Sources.json @@ -146,6 +146,18 @@ "url": "https://github.com/leshchenko1979/perscache/archive/0.6.1.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, + "radicale": { + "branch": "master", + "description": "A simple CalDAV (calendar) and CardDAV (contact) server.", + "homepage": "https://radicale.org", + "owner": "kozea", + "repo": "radicale", + "rev": "d7ce2f0b98589400b0e1718cfd7bb29b7ebeaebe", + "sha256": "08himwwwikhnn4amqzgbbqq323xhfy7yf5vaqczkm2fw6h1s3skg", + "type": "tarball", + "url": "https://github.com/kozea/radicale/archive/d7ce2f0b98589400b0e1718cfd7bb29b7ebeaebe.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "regex-applicative": { "branch": "master", "description": "Regex-based parsing with applicative interface", diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 532c843..f97f6e0 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -164,6 +164,12 @@ in locations."/".proxyPass = "http://localhost:${toString ports.radicale}"; forceSSL = true; useACMEHost = rootDomain; + extraConfig = '' + proxy_set_header X-Script-Name /radicale; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $host; + proxy_pass_header Authorization; + ''; }; "reddit.${rootDomain}" = { -- cgit v1.2.3