From df79b8a3c9ee69abfda7169f5526e71cd87ade9f Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 5 Mar 2023 15:22:57 +0100 Subject: [PATCH] caddy: fix formatting --- hosts/flora-6/caddy.nix | 72 ++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/hosts/flora-6/caddy.nix b/hosts/flora-6/caddy.nix index de7e4409..06722b48 100644 --- a/hosts/flora-6/caddy.nix +++ b/hosts/flora-6/caddy.nix @@ -21,45 +21,45 @@ output discard ''; extraConfig = '' - # PubSolarOS images - handle /os/download/* { - root * /srv/www - file_server /os/download/* browse - } - # serve base domain pub.solar for mastodon.pub.solar - # https://masto.host/mastodon-usernames-different-from-the-domain-used-for-installation/ - handle /.well-known/host-meta { - redir https://mastodon.pub.solar{uri} - } + # PubSolarOS images + handle /os/download/* { + root * /srv/www + file_server /os/download/* browse + } + # serve base domain pub.solar for mastodon.pub.solar + # https://masto.host/mastodon-usernames-different-from-the-domain-used-for-installation/ + handle /.well-known/host-meta { + redir https://mastodon.pub.solar{uri} + } - # Tailscale OIDC requirement - handle /.well-known/webfinger { - respond 200 { - body `{ - "subject": "acct:admins@pub.solar", - "links": [ - { - "rel": "http://openid.net/specs/connect/1.0/issuer", - "href": "https://auth.pub.solar/realms/pub.solar" - } - ] - }` - } - } + # Tailscale OIDC requirement + handle /.well-known/webfinger { + respond 200 { + body `{ + "subject": "acct:admins@pub.solar", + "links": [ + { + "rel": "http://openid.net/specs/connect/1.0/issuer", + "href": "https://auth.pub.solar/realms/pub.solar" + } + ] + }` + } + } - # redirect to statutes - redir /satzung https://cloud.pub.solar/s/2tRCP9aZFCiWxQy temporary + # redirect to statutes + redir /satzung https://cloud.pub.solar/s/2tRCP9aZFCiWxQy temporary - # pub.solar website - handle { - root * /srv/www/pub.solar - try_files {path}.html {path} - file_server - } - # minimal error handling, respond with status code and text - handle_errors { - respond "{http.error.status_code} {http.error.status_text}" - } + # pub.solar website + handle { + root * /srv/www/pub.solar + try_files {path}.html {path} + file_server + } + # minimal error handling, respond with status code and text + handle_errors { + respond "{http.error.status_code} {http.error.status_text}" + } ''; }; "www.pub.solar" = {